A383848 In the binary representation of n, rotate left by the number of ones.
0, 1, 1, 3, 1, 6, 3, 7, 1, 6, 10, 13, 3, 14, 7, 15, 1, 6, 10, 28, 18, 13, 21, 27, 3, 14, 22, 29, 7, 30, 15, 31, 1, 6, 10, 28, 18, 44, 52, 57, 34, 13, 21, 58, 37, 27, 43, 55, 3, 14, 22, 60, 38, 29, 45, 59, 7, 30, 46, 61, 15, 62, 31, 63, 1, 6, 10, 28, 18, 44, 52, 120, 34
Offset: 0
Examples
a(19) = 28 because 19 = 10011_2, and 10011_2 rotated to the left 3 times gives 11100_2 = 28.
Links
- Paolo Xausa, Table of n, a(n) for n = 0..16383
Comments