OFFSET
0,8
EXAMPLE
The array begins:
0, 0, 0, 0, 0, 0, 0, 0, ...
0, 1, 2, 3, 4, 5, 6, 7, ...
0, 2, 4, 6, 8, 1, 3, 5, ...
0, 3, 6, 9, 3, 6, 9, 3, ...
0, 4, 8, 3, 7, 2, 6, 1, ...
0, 5, 1, 6, 2, 7, 3, 8, ...
0, 6, 3, 9, 6, 3, 9, 6, ...
0, 7, 5, 3, 1, 8, 6, 4, ...
...
MATHEMATICA
A[i_, j_]:=If[i*j==0, 0, 1+Mod[i*j-1, 9]]; Flatten[Table[A[n-k, k], {n, 0, 12}, {k, 0, n}]]
PROG
(PARI) T(n, k) = if (n && k, (n*k-1)%9+1, 0); \\ Michel Marcus, May 12 2022
CROSSREFS
KEYWORD
AUTHOR
Stefano Spezia, Apr 24 2022
STATUS
approved