Any number n can be written uniquely in the form n = 2^k_1 - 2^k_2 + 2^k_3 - ... + 2^k_{2r+1} where the signs alternate, there are an odd number of terms, and k_1 > k_2 > k_3 > ... > k_{2r+1} >= 0; sequence gives number of terms 2r+1.

A072219

Any number n can be written uniquely in the form n = 2^k_1 - 2^k_2 + 2^k_3 - ... + 2^k_{2r+1} where the signs alternate, there are an odd number of terms, and k_1 > k_2 > k_3 > ... > k_{2r+1} >= 0; sequence gives number of terms 2r+1.

Terms

    a(0) =1a(1) =1a(2) =3a(3) =1a(4) =3a(5) =3a(6) =3a(7) =1a(8) =3a(9) =3a(10) =5a(11) =3a(12) =3a(13) =3a(14) =3a(15) =1a(16) =3a(17) =3a(18) =5a(19) =3a(20) =5a(21) =5a(22) =5a(23) =3a(24) =3a(25) =3a(26) =5a(27) =3a(28) =3a(29) =3

External references