MathDB
Unique Representation

Source: Romanian Masters 2017 D1 P1

February 25, 2017
algebraRMMAdditive combinatoricsrepresentationRMM 2016

Problem Statement

(a) Prove that every positive integer nn can be written uniquely in the form n=j=12k+1(1)j12mj,n=\sum_{j=1}^{2k+1}(-1)^{j-1}2^{m_j}, where k0k\geq 0 and 0m1<m2<m2k+10\le m_1<m_2\cdots <m_{2k+1} are integers. This number kk is called weight of nn.
(b) Find (in closed form) the difference between the number of positive integers at most 220172^{2017} with even weight and the number of positive integers at most 220172^{2017} with odd weight.