OFFSET
1,3
COMMENTS
A020985(a(n)) = 1.
Or numbers n for which numbers of 1's and runs of 1's in binary representation have the same parity: A010060(n)=A268411(n). - Vladimir Shevelev, Feb 10 2016
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
Vladimir Shevelev, Two analogs of Thue-Morse sequence, arXiv:1603.04434 [math.NT], 2016.
MATHEMATICA
GRS = Table[RudinShapiro[n], {n, 0, 200}];
Position[GRS, _?Positive] - 1 // Flatten (* Jean-François Alcover, Dec 11 2018 *)
PROG
(Haskell)
import Data.List (elemIndices)
a203463 n = a203463_list !! (n-1)
a203463_list = elemIndices 1 a020985_list
(Python)
from itertools import count, islice
def A203463_gen(startvalue=0): # generator of terms >= startvalue
return filter(lambda n:(n&(n>>1)).bit_count()&1^1, count(max(startvalue, 0)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jan 02 2012
STATUS
approved