# diagrams -- Ferrers diagrams contained in a rectangle

## Synopsis

• Usage:
diagrams(k,n)
• Inputs:
• k, an integer, maximum size of each entry in diagram
• n, an integer, number of entries in diagram
• Outputs:
• a list of lists of integers $\{a_1, \dots, a_n\}$ such that $k \geq a_1 \geq ... \geq a_n \geq 0$

## For the programmer

The object diagrams is .