MathLabs

Problem 3

Let A(n)A(n) denote the number of sequences a1≥a2≥⋯≥aka_1\ge a_2\ge\cdots\ge a_k of positive integers for which a1+⋯+ak=na_1+\cdots+a_k=n and each ai+1a_i+1 is a power of two (i=1,2,…,ki=1,2,\ldots,k). Let B(n)B(n) denote the number of sequences b1≥b2≥⋯≥bmb_1\ge b_2\ge\cdots\ge b_m of positive integers for which b1+⋯+bm=nb_1+\cdots+b_m=n and each inequality bj≥2bj+1b_j\ge2b_{j+1} holds (j=1,2,…,m−1j=1,2,\ldots,m-1). Prove that A(n)=B(n)A(n)=B(n) for every positive integer nn.
Step 3 of 4: Marvelous arrays are determined by either sum
marvelous array: rows 2N−1,…,2,1, N non-increasing, row lengths non-increasing\text{marvelous array: rows } 2^{N-1},\ldots,2,1,\ N \text{ non-increasing, row lengths non-increasing}
Detailed analysis

Call an array marvelous if its rows are left-aligned copies of 2N−1,2N−2,…,2,12^{N-1},2^{N-2},\ldots,2,1 for non-increasing values of NN with non-increasing row lengths. Given any type-BB sequence b1≥⋯≥bmb_1\ge\cdots\ge b_m, one builds a marvelous array inductively: fill bmb_m rows with 2m−1,…,2,12^{m-1},\ldots,2,1, then bm−1−2bmb_{m-1}-2b_m further rows with 2m−2,…,2,12^{m-2},\ldots,2,1, and so on down to b1−2b2b_1-2b_2 rows containing only the entry 11; this array's column sums recover b1,…,bmb_1,\ldots,b_m exactly, and its row sums are the corresponding type-AA sequence. A marvelous array is determined uniquely by its row sums (obviously, since the rows are read off directly) and, by this inductive construction, equally uniquely by its column sums.