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!)
A342449 a(n) = Sum_{k=1..n} gcd(k,n)^k. 4
1, 5, 29, 262, 3129, 46705, 823549, 16777544, 387421251, 10000003469, 285311670621, 8916100581446, 302875106592265, 11112006826387025, 437893890391180013, 18446744073743123788, 827240261886336764193, 39346408075299116257065 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
If p is prime, a(p) = p-1 + p^p = A231712(p).
MATHEMATICA
a[n_] := Sum[GCD[k, n]^k, {k, 1, n}]; Array[a, 20] (* Amiram Eldar, Mar 13 2021 *)
PROG
(PARI) a(n) = sum(k=1, n, gcd(k, n)^k);
CROSSREFS
Sequence in context: A231712 A215867 A342423 * A345098 A144015 A326986
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Mar 13 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 April 25 07:07 EDT 2024. Contains 371964 sequences. (Running on oeis4.)