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 4 of 4: Conclude the bijection
A(n)=B(n)A(n)=B(n)
Detailed analysis

The row-sum map (type AA to type BB, via reading off column sums of the array built from the rows) and the column-sum map (type BB to type AA, via reading off row sums of the marvelous array built from the columns) are mutually inverse, since a marvelous array is uniquely recovered from either its row sums or its column sums. Hence these maps give a bijection between type-AA sequences summing to nn and type-BB sequences summing to nn, so A(n)=B(n)A(n)=B(n) for every positive integer nn.