|
|
A270803
|
|
Formal inverse of Thue-Morse sequence A010060.
|
|
2
|
|
|
0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0
|
|
COMMENTS
|
Conjecture confirmed. See the attached file. The idea is to guess the automaton for this sequence (in base 2) and then verify that it satisfies the identities in the Gawron-Ulas paper. Next we make a (base 2) automaton for A151666. This is easy because it is just the numbers consisting only of 0 and 1 in base 4. Then finally we assert Fischer's identity and Walnut returns TRUE. - Jeffrey Shallit, Nov 30 2022
|
|
LINKS
|
|
|
FORMULA
|
a(0)=0, a(1)=a(2)=1, a(3)=0; thereafter
if n mod 4 = 0 then a(n) = a(n-1),
if n mod 4 = 1 then a(n) = a(n-2),
if n mod 4 = 2 then a(n) = a(n-3),
otherwise a(n) = (a(n-4) + a((n-3)/4)) mod 2.
|
|
MAPLE
|
option remember;
if n <=3 then
op(n+1, [0, 1, 1, 0]) ;
else
if n mod 4 = 0 then
procname(n-1)
elif n mod 4 = 1 then
procname(n-2)
elif n mod 4 = 2 then
procname(n-3)
else
(procname(n-4)+procname((n-3)/4)) mod 2;
end if;
end if;
end proc:
|
|
MATHEMATICA
|
a[n_] := a[n] = Which[n <= 3, {0, 1, 1, 0}[[n + 1]], Mod[n, 4] == 0, a[n - 1], Mod[n, 4] == 1, a[n - 2], Mod[n, 4] == 2, a[n - 3], True, Mod[a[n - 4] + a[(n - 3)/4], 2]];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|