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.

A078837 a(n) = Sum_{k=1..prime(n)-1} floor(k^3/prime(n)).

Original entry on oeis.org

0, 2, 18, 60, 270, 462, 1080, 1530, 2772, 5670, 6960, 11970, 16380, 18942, 24840, 35802, 49590, 54870, 72930, 86940, 94572, 120120, 139482, 172260, 223440, 252450, 267852, 300510, 317790, 354312, 504000, 553410, 633420, 661710, 815850
Offset: 1

Views

Author

Benoit Cloitre, Dec 08 2002

Keywords

Programs

  • Mathematica
    Table[(Times@@(Prime[n]+{1,-1,-2}))/4,{n,40}] (* Harvey P. Dale, Dec 31 2020 *)
  • PARI
    a(n) = my(p=prime(n)); sum(k=1, p-1, k^3\p); \\ Michel Marcus, Mar 16 2023

Formula

a(n) = (1/4)*(prime(n)-2)*(prime(n)-1)*(prime(n)+1).