A352729 The binary expansion of a(n) contains the runs of consecutive 1's that appear both in the binary expansions of n and n+1.
0, 0, 0, 0, 4, 0, 0, 0, 8, 8, 8, 0, 12, 0, 0, 0, 16, 16, 16, 16, 20, 16, 16, 0, 24, 24, 24, 0, 28, 0, 0, 0, 32, 32, 32, 32, 36, 32, 32, 32, 40, 40, 40, 32, 44, 32, 32, 0, 48, 48, 48, 48, 52, 48, 48, 0, 56, 56, 56, 0, 60, 0, 0, 0, 64, 64, 64, 64, 68, 64, 64, 64
Offset: 0
Examples
For n = 42: - the binary expansion of 42 is "101010", - the binary expansion of 43 is "101011", - the first two runs of 1's are the same, the others differ, - so the binary expansion of a(42) is "101000", - and a(42) = 40.
Links
Programs
Formula
a(n) = A352727(n, n+1).
Comments