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!)
A338682 a(n) = Sum_{d|n} (-1)^(d-1) * binomial(d+n/d-1, d). 6
1, 1, 4, 0, 6, 3, 8, -8, 20, 0, 12, -12, 14, -7, 72, -65, 18, 10, 20, -61, 142, -33, 24, -203, 152, -52, 248, -183, 30, 121, 32, -617, 398, -102, 828, -619, 38, -133, 600, -896, 42, 140, 44, -870, 2864, -207, 48, -4438, 1766, 751, 1192, -1587, 54, -348, 4424, -3011, 1598, -348, 60 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
G.f.: Sum_{k >= 1} (1 - 1/(1 + x^k)^k).
G.f.: - Sum_{k >= 1} (-x)^k/(1 - x^k)^(k+1).
If p is prime, a(p) = (-1)^(p-1) + p.
MATHEMATICA
a[n_] := DivisorSum[n, (-1)^(# - 1) * Binomial[# + n/# - 1, #] &]; Array[a, 60] (* Amiram Eldar, Apr 24 2021 *)
PROG
(PARI) a(n) = sumdiv(n, d, (-1)^(d-1)*binomial(d+n/d-1, d));
(PARI) N=66; x='x+O('x^N); Vec(sum(k=1, N, 1-1/(1+x^k)^k))
(PARI) N=66; x='x+O('x^N); Vec(-sum(k=1, N, (-x)^k/(1-x^k)^(k+1)))
CROSSREFS
Sequence in context: A360044 A127447 A226775 * A305731 A279433 A096272
KEYWORD
sign
AUTHOR
Seiichi Manyama, Apr 23 2021
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 July 11 09:40 EDT 2024. Contains 374228 sequences. (Running on oeis4.)