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.

A324937 Triangle read by rows: T(n, k) = 2*n*k + n + k - 8.

Original entry on oeis.org

-4, -1, 4, 2, 9, 16, 5, 14, 23, 32, 8, 19, 30, 41, 52, 11, 24, 37, 50, 63, 76, 14, 29, 44, 59, 74, 89, 104, 17, 34, 51, 68, 85, 102, 119, 136, 20, 39, 58, 77, 96, 115, 134, 153, 172, 23, 44, 65, 86, 107, 128, 149, 170, 191, 212, 26, 49, 72, 95, 118, 141, 164, 187, 210, 233, 256
Offset: 1

Views

Author

Vincenzo Librandi, Mar 25 2019

Keywords

Examples

			Triangle begins:
  -4;
  -1, 4;
   2, 9,  16;
   5, 14, 23, 32;
   8, 19, 30, 41, 52;
  11, 24, 37, 50, 63, 76;
  14, 29, 44, 59, 74, 89,  104;
  17, 34, 51, 68, 85, 102, 119, 136;
  20, 39, 58, 77, 96, 115, 134, 153, 172;  etc.
		

Crossrefs

Similar sequence T(n,k) = 2*n*k+n+k-h: A144562 (h=1); A154680 (h=2); A154684 (h=3); A155724 (h=4); A155546 (h=5); A155550 (h=6); A144670 (h=7); this sequence (h=8); A155551 (h=9).

Programs

  • Magma
    [2*n*k+n+k-8: k in [1..n], n in [1..11]]; /* As triangle */ [[2*n*k+n+k-8: k in [1..n]]: n in [1.. 15]];
  • Mathematica
    t[n_, k_]:=2 n k + n + k - 8; Table[t[n, k], {n, 11}, {k, n}]//Flatten

Formula

G.f.: x*y*(9*x^3*y^2 - 4*x^2*y*(5 + 2*y) + x*(7 + 16*y) - 4)/((1 - x)^2*(1 - x*y)^3). - Stefano Spezia, Jul 29 2025