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!)
A352014 a(n) = Sum_{p|n, p prime} (-1)^(n/p+1) * (n-1)!/(p-1)!. 3
0, 1, 1, -6, 1, 60, 1, -5040, 20160, 347760, 1, -59875200, 1, 6218372160, 47221574400, -1307674368000, 1, 177843714048000, 1, -126713646259200000, 1219830034655232000, 51090928092415411200, 1, -38778025108327464960000, 25852016738884976640000 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
LINKS
FORMULA
E.g.f.: Sum_{p prime} log(1+x^p)/p!.
MATHEMATICA
a[n_] := Sum[(-1)^(n/p + 1)*(n - 1)!/(p - 1)!, {p, FactorInteger[n][[;; , 1]]}]; a[1] = 0; Array[a, 25] (* Amiram Eldar, Oct 04 2023 *)
PROG
(PARI) a(n) = sumdiv(n, d, isprime(d)*(-1)^(n/d+1)*(n-1)!/(d-1)!);
(PARI) my(N=40, x='x+O('x^N)); concat(0, Vec(serlaplace(sum(k=1, N, isprime(k)*log(1+x^k)/k!))))
CROSSREFS
Sequence in context: A344918 A174502 A056218 * A292219 A364110 A197655
KEYWORD
sign
AUTHOR
Seiichi Manyama, Feb 28 2022
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 June 29 18:23 EDT 2024. Contains 373855 sequences. (Running on oeis4.)