OFFSET
1,3
COMMENTS
Iteratively taking sums of the values in each row starting with 1 produces the "figurate" numbers. For instance: 1, 1 + 2 = 3, 1 + 2 + 3 = 6 (the triangular numbers -- A000217) 1, 1 + 3 = 4, 1 + 3 + 5 = 9 (the square numbers -- A000290) 1, 1 + 4 = 5, 1 + 4 + 7 = 10 (the pentagonal numbers -- A000326) etc.
LINKS
Alois P. Heinz, Antidiagonals n = 1..141
EXAMPLE
The array begins:
1, 2, 3, 4, 5, 6, ...
1, 3, 5, 7, 9, 11, ...
2, 4, 6, 8, 10, 12, ...
1, 4, 7, 10, 13, 16, ...
2, 5, 8, 11, 14, 17, ...
3, 6, 9, 12, 15, 18, ...
MAPLE
A:= proc(n, k) local m;
m:= floor((sqrt(8*n-7)-1)/2);
n + (m+1)*(k-1-m/2)
end:
seq(seq(A(1+d-k, k), k=1..d), d=1..12); # Alois P. Heinz, Jul 16 2012
MATHEMATICA
imax = 5;
A = Table[k, {i, 1, imax}, {j, 1, i}, {k, j, j + i*imax*(imax+1)/2 - 1, i} ] // Flatten[#, 1]&;
Table[A[[n-k+1, k]], {n, 1, Length[A]}, {k, 1, n}] // Flatten (* Jean-François Alcover, May 23 2016 *)
CROSSREFS
KEYWORD
AUTHOR
Andrew S. Plewe, Jan 04 2007
STATUS
approved