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.

A167222 Irregular triangle read by rows: T(n,k) = n^3 - k^2 with 0 <= k <= A077121(n).

Original entry on oeis.org

0, 1, 0, 8, 7, 4, 27, 26, 23, 18, 11, 2, 64, 63, 60, 55, 48, 39, 28, 15, 0, 125, 124, 121, 116, 109, 100, 89, 76, 61, 44, 25, 4, 216, 215, 212, 207, 200, 191, 180, 167, 152, 135, 116, 95, 72, 47, 20, 343, 342, 339, 334, 327, 318, 307, 294, 279, 262, 243, 222, 199, 174
Offset: 0

Views

Author

Reinhard Zumkeller, Oct 31 2009

Keywords

Examples

			Triangle begins:
  0;
  1, 0;
  8, 7, 4;
  27, 26, 23, 18, 11, 2;
  64, 63, 60, 55, 48, 39, 28, 15, 0;
  125, 124, 121, 116, 109, 100, 89, 76, 61, 44, 25, 4;
  216, 215, 212, 207, 200, 191, 180, 167, 152, 135, 116, 95, 72, 47, 20;
  ...
		

Crossrefs

For primes see A167224.

Programs

  • PARI
    row(n) = my(c=n^3); vector(1+sqrtint(c), i, c-(i-1)^2); \\ Michel Marcus, May 28 2024