Write n in binary; repeatedly sum the "digits" until reaching 1; a(n) = sum of these sums (including '1' and n itself).

A078677

Write n in binary; repeatedly sum the "digits" until reaching 1; a(n) = sum of these sums (including '1' and n itself).

Terms

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

External references