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.

A083215 a(n) = 1 + Sum(prime(i)*(2*i-1): 1<=i<=n).

Original entry on oeis.org

3, 12, 37, 86, 185, 328, 549, 834, 1225, 1776, 2427, 3278, 4303, 5464, 6827, 8470, 10417, 12552, 15031, 17800, 20793, 24190, 27925, 32108, 36861, 42012, 47471, 53356, 59569, 66236, 73983, 82236, 91141, 100454, 110735, 121456, 132917
Offset: 1

Views

Author

Reinhard Zumkeller, Jun 01 2003

Keywords

Crossrefs

Cf. A002412.
Equals 1 + A316322(n).

Programs

  • Mathematica
    nxt[{n_, a_}] := {n + 1, a + Prime[n + 1] (2 n + 1)}; NestList[nxt,{1,2},50][[All,2]]+1 (* Harvey P. Dale, Jul 05 2018 *)
  • PARI
    a(n) = 1 + sum(i=1, n, prime(i)*(2*i-1)); \\ Michel Marcus, Jan 22 2022

Extensions

Definition corrected by Harvey P. Dale, Jul 03 2018