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!)
A217670 G.f.: Sum_{n>=0} x^n/(1 + x^n)^n. 7
1, 1, 0, 2, -2, 2, 0, 2, -8, 8, 0, 2, -12, 2, 0, 32, -36, 2, 0, 2, -20, 58, 0, 2, -136, 72, 0, 92, -28, 2, 0, 2, -272, 134, 0, 422, -288, 2, 0, 184, -480, 2, 0, 2, -44, 1232, 0, 2, -2360, 926, 0, 308, -52, 2, 0, 2004, -1176, 382, 0, 2, -4064, 2, 0, 6470, -5128, 3642 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..10000 (terms 0..1000 from Paul D. Hanna)
FORMULA
a(4*n+2) = 0 for n>=0.
From Seiichi Manyama, Apr 23 2021: (Start)
a(n) = Sum_{d|n} (-1)^(d-1) * binomial(d+n/d-2, d-1) for n > 0.
If p is prime, a(p) = 1 + (-1)^(p-1). (End)
EXAMPLE
G.f.: A(x) = 1 + x + 2*x^3 - 2*x^4 + 2*x^5 + 2*x^7 - 8*x^8 + 8*x^9 +...
where
A(x) = 1 + x/(1+x) + x^2/(1+x^2)^2 + x^3/(1+x^3)^3 + x^4/(1+x^4)^4 + x^5/(1+x^5)^5 +...
MATHEMATICA
terms = 100; Sum[x^n/(1 + x^n)^n, {n, 0, terms}] + O[x]^terms // CoefficientList[#, x]& (* Jean-François Alcover, May 16 2017 *)
PROG
(PARI) {a(n)=polcoeff(sum(m=0, n, x^m/(1+x^m +x*O(x^n))^m), n)}
for(n=0, 100, print1(a(n), ", "))
(PARI) a(n) = if(n==0, 1, sumdiv(n, d, (-1)^(d-1)*binomial(d+n/d-2, d-1))); \\ Seiichi Manyama, Apr 23 2021
CROSSREFS
Sequence in context: A338434 A059288 A319109 * A243310 A197727 A176884
KEYWORD
sign
AUTHOR
Paul D. Hanna, Oct 10 2012
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 April 18 14:46 EDT 2024. Contains 371780 sequences. (Running on oeis4.)