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.

A036519 Smallest triangular number containing exactly n 2's.

Original entry on oeis.org

21, 1225, 23220, 212226, 22121226, 2202322528, 21222223210, 202222242820, 22122952222920, 229222922294226, 2221228522222920, 222322222025202925, 222212284222222920, 22222122841222222920, 2092226022222222442221, 22222222042522220020225, 622222207421222222222253, 22222212062122272422225226
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    nsmall = Table[Infinity, 20];
    For[i = 0, i <= 10^6, i++, p = PolygonalNumber[i];
      n0 = Count[IntegerDigits[p], 2];
      If[nsmall[[n0]] > p, nsmall[[n0]] = p]];
    ReplaceAll[nsmall, Infinity -> "?"] (* Robert Price, Mar 22 2020 *)

Extensions

a(12)-a(18) from Giovanni Resta, Oct 30 2019