Nothing Special   »   [go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A308481
a(n) = Sum_{k=1..n, gcd(n,k) = 1} k^n.
3
1, 1, 9, 82, 1300, 15626, 376761, 6161988, 176787117, 3769318700, 142364319625, 3152513804548, 154718778284148, 4340009120036086, 210971169748692000, 7281661100510001416, 435659030617933827136, 14181101408561469791694, 1052864393300587929716721, 41673894815421072916530408
OFFSET
1,3
LINKS
MATHEMATICA
a[n_] := Sum[If[GCD[n, k] == 1, k^n, 0], {k, 1, n}]; Table[a[n], {n, 1, 20}]
PROG
(PARI) a(n) = sum(k=1, n, (gcd(n, k)==1)*k^n) \\ Felix Fröhlich, May 30 2019
CROSSREFS
First superdiagonal of A308477.
Cf. A031971.
Sequence in context: A294645 A338663 A308668 * A041146 A320991 A015497
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, May 30 2019
STATUS
approved