OFFSET
0,2
EXAMPLE
Diagonals (each starting on row 0):
{1};
{2,2};
{2,4,2};
...
Array begins:
1 2 2 2 2 2 2
2 4 5 6 7 8 9
2 5 6 8 9 11 12
2 6 8 10 12 15 16
2 7 9 12 14 18 19
2 8 11 15 18 22 24
2 9 12 16 19 24 26
PROG
(PARI) T(n, k) = (n+1)*(k+1) - sum(i=0, n, sum(j=0, k, gcd(i, j)>1));
matrix(7, 7, n, k, T(n-1, k-1)) \\ Michel Marcus, Aug 06 2021
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
STATUS
approved