The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A367493 a(n) = Sum_{d|n} (n-d)^n. 2
0, 1, 8, 97, 1024, 20450, 279936, 7509953, 144295424, 4570291850, 100000000000, 4491754172274, 106993205379072, 5221973073321002, 171975117132398592, 8931527427394008833, 295147905179352825856, 20290116242888952838355, 708235345355337676357632, 51879761166564630630389778 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
a(n) = Sum_{k=0..n} (-1)^k*binomial(n,k)*n^(n-k)*sigma_k(n).
MATHEMATICA
a[n_]:=Sum[(n-d)^n, {d, Divisors[n]}]; Array[a, 20] (* Stefano Spezia, Nov 20 2023 *)
PROG
(Python)
from sympy import divisors
def A367493(n): return sum((n-d)**n for d in divisors(n, generator=True))
CROSSREFS
Sequence in context: A320398 A218451 A262777 * A365845 A292747 A083182
KEYWORD
nonn
AUTHOR
Chai Wah Wu, Nov 20 2023
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 10 03:48 EDT 2024. Contains 373253 sequences. (Running on oeis4.)