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!)
A321521 a(n) = Sum_{d|n} (-1)^(n/d+1)*d!. 2
1, 1, 7, 21, 121, 715, 5041, 40293, 362887, 3628681, 39916801, 479000895, 6227020801, 87178286161, 1307674368127, 20922789847653, 355687428096001, 6402373705365835, 121645100408832001, 2432902008173011101, 51090942171709445047, 1124000727777567763201 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
G.f.: Sum_{k>=1} k!*x^k/(1 + x^k).
a(n) ~ n!. - Vaclav Kotesovec, Nov 13 2018
MATHEMATICA
Table[Sum[(-1)^(n/d + 1) d!, {d, Divisors[n]}], {n, 22}]
nmax = 22; Rest[CoefficientList[Series[Sum[k! x^k/(1 + x^k), {k, 1, nmax}], {x, 0, nmax}], x]]
PROG
(PARI) a(n) = sumdiv(n, d, (-1)^(n/d+1)*d!); \\ Michel Marcus, Nov 12 2018
CROSSREFS
Sequence in context: A038184 A001185 A001693 * A061961 A028248 A267609
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Nov 12 2018
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 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)