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!)
A026513 a(n) = t(2+3n), where t = A001285 (Thue-Morse sequence). 4

%I #22 Nov 29 2020 19:06:35

%S 2,1,2,2,2,1,1,1,2,1,2,2,2,2,2,2,2,1,2,2,2,1,1,1,2,1,1,1,1,1,1,1,2,1,

%T 2,2,2,1,1,1,2,1,2,2,2,2,2,2,2,1,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,1,2,2,

%U 2,1,1,1,2,1,2,2,2,2,2,2,2,1,2,2,2,1,1,1,2,1

%N a(n) = t(2+3n), where t = A001285 (Thue-Morse sequence).

%H Michael De Vlieger, <a href="/A026513/b026513.txt">Table of n, a(n) for n = 0..9999</a>

%t Array[1 + Mod[DigitCount[3 # + 2, 2, 1], 2] &, 105, 0] (* _Michael De Vlieger_, Oct 06 2019 *)

%t Table[ThueMorse[2+3n],{n,0,100}]+1 (* Requires Mathematica version 10 or later *) (* _Harvey P. Dale_, Nov 29 2020 *)

%o (PARI) a(n)=1+hammingweight(3*n+2)%2 \\ _Charles R Greathouse IV_, May 09 2016

%Y Cf. A001285, A026492, A026498.

%K nonn

%O 0,1

%A _Clark Kimberling_

%E Name and Pari adapted to match offset in A001285 by _Sean A. Irvine_, Oct 05 2019

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 23 03:30 EDT 2024. Contains 371906 sequences. (Running on oeis4.)