The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A161974 a(n) = number of equalities of the form A010060(n+k) = A010060(n), k=1,2,3. 1
1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
See comment to A161916. 3-a(n) is the number of equalities of kind A010060(n+k) = 1-A010060(n), k=1,2,3.
LINKS
PROG
(PARI) a(n)=sum(k=1, 3, hammingweight(n)%2==hammingweight(n+k)%2) \\ Charles R Greathouse IV, Aug 20 2013
CROSSREFS
Sequence in context: A227195 A111620 A111628 * A316190 A358236 A330738
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, Jun 23 2009
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 May 18 02:38 EDT 2024. Contains 372617 sequences. (Running on oeis4.)