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!)
A341036 a(n) = Sum_{k=1..n} gcd(k,n)^(k-2). 2
1, 2, 5, 19, 129, 1306, 16813, 262181, 4783059, 100000214, 2357947701, 61917372083, 1792160394049, 56693912393474, 1946195068811453, 72057594039243049, 2862423051509815809, 121439531096661117354, 5480386857784802185957 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
a[n_] := Sum[GCD[k, n]^(k - 2), {k, 1, n}]; Array[a, 20] (* Amiram Eldar, Mar 13 2021 *)
PROG
(PARI) a(n) = sum(k=1, n, gcd(k, n)^(k-2));
CROSSREFS
Sequence in context: A322011 A355519 A342435 * A365435 A273280 A272906
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 May 14 21:33 EDT 2024. Contains 372533 sequences. (Running on oeis4.)