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!)
A083905 G.f.: 1/(1-x) * sum(k>=0, (-1)^k*x^2^(k+1)/(1+x^2^k)). 2
0, 1, 0, 0, -1, 1, 0, 1, 0, 2, 1, 0, -1, 1, 0, 0, -1, 1, 0, -1, -2, 0, -1, 1, 0, 2, 1, 0, -1, 1, 0, 1, 0, 2, 1, 0, -1, 1, 0, 2, 1, 3, 2, 1, 0, 2, 1, 0, -1, 1, 0, -1, -2, 0, -1, 1, 0, 2, 1, 0, -1, 1, 0, 0, -1, 1, 0, -1, -2, 0, -1, 1, 0, 2, 1, 0, -1, 1, 0, -1, -2, 0, -1, -2, -3, -1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,10
COMMENTS
For all n, a(3*A006288(n)) = 0 as proved in Russian forum dxdy.ru - see link.
LINKS
FORMULA
a(1)=0, a(2n) = -a(n)+1, a(2n+1) = -a(n).
a(n) = A030300(n) - A065359(n).
PROG
(PARI) for(n=1, 100, l=ceil(log(n)/log(2)); t=polcoeff(1/(1-x)*sum(k=0, l, (-1)^k*(x^2^(k+1))/(1+x^2^k)) + O(x^(n+1)), n); print1(t", "))
(PARI) a(n) = sum(i=0, logint(n, 2)-1, if(!bittest(n, i), (-1)^i)); \\ Kevin Ryde, May 24 2021
CROSSREFS
Sequence in context: A366851 A357525 A016102 * A179319 A321916 A257265
KEYWORD
sign,easy
AUTHOR
Ralf Stephan, Jun 18 2003
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 10 07:40 EDT 2024. Contains 372358 sequences. (Running on oeis4.)