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.

A224421 The indices of tetrahedral numbers that are also triangular.

Original entry on oeis.org

0, 1, 3, 8, 20, 34
Offset: 0

Views

Author

Tanya Khovanova, Apr 06 2013

Keywords

Examples

			The eighth tetrahedral number is 120, which is also a triangular number. Hence, 8 belongs to the sequence.
		

Crossrefs

Programs

  • Mathematica
    Select[Table[{n,(n(n+1)(n+2))/6},{n,0,35}],OddQ[Sqrt[1+8#[[2]]]]&][[;;,1]] (* Harvey P. Dale, May 31 2024 *)
  • PARI
    for(n=0,34,if(ispolygonal(n*(n+1)*(n+2)/6,3),print1(n", "))) \\ Charles R Greathouse IV, Apr 07 2013