OFFSET
1,1
COMMENTS
From Jeffrey Shallit, Mar 02 2022: (Start)
Also, the parity of the number of 2's in the bijective base-2 representation of n - 1; this is the base-2 representation using the digits {1,2} in place of {0,1}.
Also, solution of the equation a = 0 mu(a), where mu is the Thue-Morse morphism 0 -> 01, 1 -> 10. (End)
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = 1-A010060(n). - Chai Wah Wu, Mar 03 2023
MATHEMATICA
Flatten[ NestList[ Function[l, {Flatten[(l /. {0 -> {0, 1}, 1 -> {1, 0}})]}], {0}, 6]] (* Robert G. Wilson v, May 19 2005 *)
PROG
(Python)
def A092436(n): return n.bit_count()&1^1 # Chai Wah Wu, Mar 03 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Mar 23 2004
STATUS
approved