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!)
A342396 a(n) = Sum_{k=1..n} k^(n/gcd(k,n) - 1). 2
1, 2, 6, 31, 355, 3150, 67172, 904085, 22998481, 427799450, 14914341926, 287337926355, 13421957361111, 339940911160914, 15434209582905140, 493467700905592777, 28101527071305611529, 836396358233559195382 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
If p is prime, a(p) = A031971(p-1) + 1.
MATHEMATICA
a[n_] := Sum[k^(n/GCD[k, n] - 1), {k, 1, n}]; Array[a, 18] (* Amiram Eldar, Mar 10 2021 *)
PROG
(PARI) a(n) = sum(k=1, n, k^(n/gcd(k, n)-1));
CROSSREFS
Sequence in context: A075845 A003087 A203901 * A190958 A340232 A109243
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Mar 10 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 May 9 19:33 EDT 2024. Contains 372354 sequences. (Running on oeis4.)