OFFSET
0,5
COMMENTS
We only consider runs of consecutive 1's that completely match in binary expansions of n and n+1, not simply single common 1's.
LINKS
FORMULA
a(n) = A352727(n, n+1).
EXAMPLE
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.
PROG
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Mar 30 2022
STATUS
approved