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.

A321259 a(n) = sigma_n(n) - n^n.

Original entry on oeis.org

0, 1, 1, 17, 1, 794, 1, 65793, 19684, 9766650, 1, 2194095090, 1, 678223089234, 30531927033, 281479271743489, 1, 150196195641350171, 1, 100000096466944316978, 558545874543637211, 81402749386839765307626, 1, 79501574308536809523296482, 298023223876953126
Offset: 1

Views

Author

Ilya Gutkovskiy, Nov 01 2018

Keywords

Comments

a(n) is the sum of n-th powers of proper divisors of n.

Crossrefs

Programs

  • Magma
    [DivisorSigma(n, n) - n^n: n in [1..30]]; // Vincenzo Librandi, Nov 02 2018
    
  • Mathematica
    Table[DivisorSigma[n, n] - n^n, {n, 25}]
    nmax = 25; Rest[CoefficientList[Series[Sum[(k x)^(2 k)/(1 - (k x)^k), {k, 1, nmax}], {x, 0, nmax}], x]]
  • PARI
    a(n) = sigma(n, n) - n^n; \\ Michel Marcus, Nov 02 2018

Formula

G.f.: Sum_{k>=1} (k*x)^(2*k)/(1 - (k*x)^k).
a(n) = A023887(n) - A000312(n).
a(n) = A321258(n,n).
a(n) = 1 if n is prime.