OFFSET
1,5
FORMULA
Moebius transform is period 8 sequence [1, 0, -1, 0, 1, 2, -1, 0, ...].
G.f.: Sum_{k>0} x^k/(1-(-x^2)^k) = Sum_{k>0} x^k/(1+x^(2k))+2x^(6k)/(1-x^(8k)) = Sum_{k>0} -(-1)^k x^(2k-1)/(1+(-1)^k*x^(2k-1)).
a(4n+3) = 0.
PROG
(PARI) a(n)=if(n<1, 0, sumdiv(n, d, kronecker(-4, d)+2*(n%2==0)*(d%4==3)))
(PARI) {a(n)=if(n<1, 0, if(n%4==3, 0, if(n%4==2, numdiv(n/2), if(n%4==0, sumdiv(n, d, d%2), sumdiv(n, d, (-1)^(d\2))))))}
(PARI) {a(n)=if(n<1, 0, polcoeff( sum(k=1, sqrtint(8*n+1)\2, (-1)^(k%4==2)*x^((k^2+k)/2)/(1-(-1)^(k\2)*x^k), x*O(x^n)), n))}
(PARI) {a(n)=if(n<1, 0, polcoeff( sum(k=1, n, x^k/(1-(-x^2)^k), x*O(x^n)), n))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael Somos, Oct 29 2005
STATUS
approved