a(n) counts the one-bits in the binary representation of n when we cycle from left to right through the individual bits of n, restarting at the leftmost bit after the rightmost is reached and performing n bitwise steps in total.

A091821

a(n) counts the one-bits in the binary representation of n when we cycle from left to right through the individual bits of n, restarting at the leftmost bit after the rightmost is reached and performing n bitwise steps in total.

Terms

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

External references