login
A280737
a(n) = A007302(n) - 1.
2
0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 2, 1, 2, 1, 1, 0, 1, 1, 2, 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 1, 1, 0, 1, 1, 2, 1, 2, 2, 2, 1, 2, 2, 3, 2, 3, 2, 2, 1, 2, 2, 3, 2, 3, 2, 2, 1, 2, 2, 2, 1, 2, 1, 1, 0, 1, 1, 2, 1, 2, 2, 2, 1, 2, 2, 3, 2, 3, 2, 2, 1, 2, 2, 3, 2, 3, 3, 3, 2, 3, 3, 3, 2, 3, 2, 2, 1, 2, 2, 3
OFFSET
1,11
LINKS
Alma D'Aniello, Aldo de Luca, and Alessandro De Luca, On Christoffel and standard words and their derivatives, arXiv:1602.03231 [cs.DM], 2016 (mentions this sequence).
PROG
(PARI) a(n)=hammingweight(bitxor(n, 3*n))-1; \\ Joerg Arndt, Feb 25 2023
CROSSREFS
Cf. A007302.
Sequence in context: A116510 A128915 A063995 * A322305 A020951 A117118
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jan 11 2017
STATUS
approved