cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

A363698 a(n) = n! * Sum_{d|n} (-1)^(d+1) * (n/d)^n / d!.

Original entry on oeis.org

1, 7, 163, 5951, 375001, 33337559, 4150656721, 675135713279, 140588337476161, 36270281280965759, 11388728893445164801, 4270306368140557557119, 1886009588552176549862401, 968696203690612910273080319
Offset: 1

Views

Author

Seiichi Manyama, Jun 16 2023

Keywords

Crossrefs

Programs

  • Mathematica
    a[n_] := n! * DivisorSum[n, (-1)^(#+1) * (n/#)^n / #! &]; Array[a, 15] (* Amiram Eldar, Jul 03 2023 *)
  • PARI
    a(n) = n!*sumdiv(n, d, (-1)^(d+1)*(n/d)^n/d!);

Formula

E.g.f.: Sum_{k>0} (1 - exp(-(k * x)^k)).
If p is prime, a(p) = (-1)^(p+1) + p^p * p!.
Showing 1-1 of 1 results.