cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A341036 a(n) = Sum_{k=1..n} gcd(k,n)^(k-2).

Original entry on oeis.org

1, 2, 5, 19, 129, 1306, 16813, 262181, 4783059, 100000214, 2357947701, 61917372083, 1792160394049, 56693912393474, 1946195068811453, 72057594039243049, 2862423051509815809, 121439531096661117354, 5480386857784802185957
Offset: 1

Views

Author

Seiichi Manyama, Mar 13 2021

Keywords

Crossrefs

Programs

  • Mathematica
    a[n_] := Sum[GCD[k, n]^(k - 2), {k, 1, n}]; Array[a, 20] (* Amiram Eldar, Mar 13 2021 *)
  • PARI
    a(n) = sum(k=1, n, gcd(k, n)^(k-2));