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.

Showing 1-3 of 3 results.

A332655 a(n) = Sum_{k=1..n} (k/gcd(n, k))^n.

Original entry on oeis.org

1, 2, 10, 84, 1301, 15693, 376762, 6168552, 176787631, 3770427352, 142364319626, 3152758480715, 154718778284149, 4340093860950619, 210971170836848270, 7281694486114555088, 435659030617933827137, 14181121059071691716406, 1052864393300587929716722, 41673907052879908244100770
Offset: 1

Views

Author

Ilya Gutkovskiy, Feb 18 2020

Keywords

Crossrefs

Programs

  • Magma
    [&+[(k div Gcd(n,k))^n:k in [1..n]]:n in [1..20]]; // Marius A. Burtea, Feb 18 2020
  • Mathematica
    Table[Sum[(k/GCD[n, k])^n, {k, 1, n}], {n, 1, 20}]
    Table[Sum[Sum[If[GCD[k, d] == 1, k^n, 0], {k, 1, d}], {d, Divisors[n]}], {n, 1, 20}]

Formula

a(n) = Sum_{k=1..n} (lcm(n, k)/n)^n.
a(n) = Sum_{d|n} Sum_{k=1..d, gcd(k, d) = 1} k^n.

A332652 a(n) = Sum_{k=1..n} n^(k/gcd(n, k)).

Original entry on oeis.org

1, 4, 15, 76, 785, 7836, 137263, 2130976, 47895489, 1010012140, 28531167071, 743044702104, 25239592216033, 797785008119932, 31147773583464735, 1157442765678719056, 51702516367896047777, 2185932446984222457444, 109912203092239643840239, 5255987282125826560192520
Offset: 1

Views

Author

Ilya Gutkovskiy, Feb 18 2020

Keywords

Crossrefs

Programs

  • Magma
    [&+[n^(k div Gcd(n,k)):k in [1..n]]:n in [1..21]]; // Marius A. Burtea, Feb 18 2020
  • Mathematica
    Table[Sum[n^(k/GCD[n, k]), {k, 1, n}], {n, 1, 20}]
    Table[Sum[Sum[If[GCD[k, d] == 1, n^k, 0], {k, 1, d}], {d, Divisors[n]}], {n, 1, 20}]

Formula

a(n) = Sum_{k=1..n} n^(lcm(n, k)/n).
a(n) = Sum_{d|n} Sum_{k=1..d, gcd(k, d) = 1} n^k.
a(n) = n * A332653(n).

A365633 The sum of divisors of n that are terms of A072873.

Original entry on oeis.org

1, 1, 1, 3, 1, 1, 1, 3, 1, 1, 1, 3, 1, 1, 1, 7, 1, 1, 1, 3, 1, 1, 1, 3, 1, 1, 4, 3, 1, 1, 1, 7, 1, 1, 1, 3, 1, 1, 1, 3, 1, 1, 1, 3, 1, 1, 1, 7, 1, 1, 1, 3, 1, 4, 1, 3, 1, 1, 1, 3, 1, 1, 1, 15, 1, 1, 1, 3, 1, 1, 1, 3, 1, 1, 1, 3, 1, 1, 1, 7, 4, 1, 1, 3, 1, 1, 1
Offset: 1

Views

Author

Amiram Eldar, Sep 14 2023

Keywords

Comments

The number of these divisors is A365632(n) and the largest of them is A327939(n).

Crossrefs

Programs

  • Mathematica
    f[p_, e_] := (p^(Floor[e/p] + 1) - 1)/(p - 1); a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
  • PARI
    a(n) = {my(f = factor(n)); prod(i = 1, #f~, (f[i,1]^(1+f[i,2] \ f[i,1])-1)/(f[i,1] - 1));}

Formula

Multiplicative with a(p^e) = (p^(floor(e/p)+1) - 1)/(p - 1).
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = Product_{p prime} (A332653(p)/(p^(p-1)-1) - 1/(p*(p-1))) = 2.253624924813... .
Showing 1-3 of 3 results.