OFFSET
0,3
COMMENTS
This is an instance of a storing function on N^2 (injective) with density 1/3.
LINKS
John S. Lew and Arnold L. Rosenberg, Polynomial indexing of integer lattice-points I. General concepts and quadratic polynomials, Journal of Number Theory, 10(2):215-243, 1978. See Corollary 5.2 p. 211.
EXAMPLE
Array begins:
1 3 8 16 27 ...
0 5 13 24 38 ...
2 10 21 35 52 ...
7 18 32 49 69 ...
15 29 46 66 89 ...
...
PROG
(PARI) T(n, k) = (n+k)*(3*n+3*k-5)/2 + (3*k+1);
matrix(8, 8, n, k, T(n-1, k-1))
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Michel Marcus, Mar 01 2021
STATUS
approved