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.

A046279 Sum of first n lucky numbers.

Original entry on oeis.org

1, 4, 11, 20, 33, 48, 69, 94, 125, 158, 195, 238, 287, 338, 401, 468, 537, 610, 685, 764, 851, 944, 1043, 1148, 1259, 1374, 1501, 1630, 1763, 1898, 2039, 2190, 2349, 2512, 2681, 2852, 3041, 3234, 3429, 3630, 3835, 4046, 4265, 4488, 4719, 4954, 5191, 5432
Offset: 1

Views

Author

Patrick De Geest, Jun 15 1998

Keywords

Comments

The subsequence of prime partial sums of lucky numbers begins: 11, 401, 1259, 2039. The subsequence of lucky partial sums of lucky numbers begins: 33, 69, 195, 537, 685, 1501, 5191. - Jonathan Vos Post, Feb 11 2010

Crossrefs

Programs

  • Mathematica
    luckyLimit = 300; t = Range[1, luckyLimit, 2]; sieve[n_] := Module[{k = t[[n]]},  t = Delete[t, Table[{i}, {i, k, Length[t], k}]]]; n = 1; While[t[[n]] < Length[t], n++; sieve[n]]; Accumulate[t]  (* Harvey P. Dale, Apr 05 2011 *)

Extensions

Offset 1 from Michel Marcus, Oct 10 2019