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!)
A140085 Period 8: repeat [0,1,1,2,1,2,2,3]. 1
0, 1, 1, 2, 1, 2, 2, 3, 0, 1, 1, 2, 1, 2, 2, 3, 0, 1, 1, 2, 1, 2, 2, 3, 0, 1, 1, 2, 1, 2, 2, 3, 0, 1, 1, 2, 1, 2, 2, 3, 0, 1, 1, 2, 1, 2, 2, 3, 0, 1, 1, 2, 1, 2, 2, 3, 0, 1, 1, 2, 1, 2, 2, 3, 0, 1, 1, 2, 1, 2, 2, 3, 0, 1, 1, 2, 1, 2, 2, 3, 0, 1, 1, 2, 1, 2, 2, 3, 0, 1, 1, 2, 1, 2, 2, 3, 0, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
Also fix e = 8; then a(n) = minimal Hamming distance between the binary representation of n and the binary representation of any multiple ke (0 <= k <= n/e) which is a child of n.
A number m is a child of n if the binary representation of n has a 1 in every position where the binary representation of m has a 1.
LINKS
FORMULA
a(n) = 3/2 -cos(Pi*n/4)/4 -(1+sqrt(2))*sin(Pi*n/4)/4 -cos(Pi*n/2)/2 -sin(Pi*n/2)/2 -cos(3*Pi*n/4)/4 +(1-sqrt(2))*sin(3*Pi*n/4)/4 -(-1)^n/2. - R. J. Mathar, Oct 08 2011
a(n) = a(n-8). G.f.: -x*(3*x^6+2*x^5+2*x^4+x^3+2*x^2+x+1) / ((x-1)*(x+1)*(x^2+1)*(x^4+1)). - Colin Barker, Jul 26 2013
PROG
See link in A140080 for Fortran program.
CROSSREFS
Sequence in context: A279861 A321431 A338984 * A071445 A144081 A278838
KEYWORD
nonn,easy
AUTHOR
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 13 08:41 EDT 2024. Contains 372498 sequences. (Running on oeis4.)