login
A340251
a(n) is the index of the bit that was inverted in A340250(n) to get A340250(n+1).
2
0, 1, 0, 2, 1, 0, 1, 3, 2, 1, 2, 0, 2, 1, 2, 4, 3, 2, 3, 1, 3, 2, 3, 0, 3, 2, 3, 1, 3, 2, 3, 5, 4, 3, 4, 2, 4, 3, 4, 1, 4, 3, 4, 2, 4, 3, 4, 0, 4, 3, 4, 2, 4, 3, 4, 1, 4, 3, 4, 2, 4, 3, 4, 6, 5, 4, 5, 3, 5, 4, 5, 2, 5, 4, 5, 3, 5, 4, 5, 1, 5, 4, 5, 3, 5, 4, 5
OFFSET
0,4
LINKS
Rémy Sigrist, Colored scatterplot of the ordinal transform of the first 2^16 terms (where the color is function of a(n))
FORMULA
A340250(n+1) = A340250(n) XOR 2^a(n) (where XOR denotes the bitwise XOR operator).
PROG
(PARI) See Links section.
CROSSREFS
Cf. A340250.
Sequence in context: A341524 A175804 A241063 * A286957 A195017 A078806
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 02 2021
STATUS
approved