login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A026498 a(n) = t(1+3n), where t = A001285 (Thue-Morse sequence). 4
2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 1, 2, 1, 1, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 1, 2, 1, 1, 1, 2, 2, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 1, 2, 1, 1, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
MATHEMATICA
Array[1 + Mod[DigitCount[3 # + 1, 2, 1], 2] &, 105, 0] (* Michael De Vlieger, Oct 03 2019 *)
PROG
(PARI) a(n)=1+hammingweight(3*n+1)%2 \\ Charles R Greathouse IV, May 09 2016
CROSSREFS
Sequence in context: A136754 A276788 A282625 * A140685 A055666 A251139
KEYWORD
nonn
AUTHOR
EXTENSIONS
Name and Pari adapted to match offset in A001285 by Sean A. Irvine, Oct 03 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 11:00 EDT 2024. Contains 371779 sequences. (Running on oeis4.)