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-1 of 1 results.

A124260 a(n) = Sum_{k=1..A124259(n)} n^k.

Original entry on oeis.org

4, 126, 12, 4, 780, 94036996914, 56, 8, 9, 1111111110, 132, 12, 30940, 8108730, 240, 16, 306, 18, 380, 20, 204204, 11154, 552, 24, 25, 702, 27, 28, 732540, 27930, 992, 32, 1222980, 62556901638174, 1260, 36, 1926220, 2141490, 1560, 40, 2896404
Offset: 1

Views

Author

Reinhard Zumkeller, Oct 23 2006

Keywords

Crossrefs

Programs

  • Mathematica
    a[n_] := Module[{k = 1, s = n}, While[SquareFreeQ[s], k++; s += n^k]; s]; Array[a, 100] (* Amiram Eldar, Dec 26 2020  *)
  • PARI
    a(n) = my(k=1, s); while (issquarefree(s=sum(i=1, k, n^i)), k++); s; \\ Michel Marcus, Dec 26 2020

Formula

a(A013929(n)) = A013929(n).
Showing 1-1 of 1 results.