OFFSET
1,2
FORMULA
T(n,1) = A006093(n).
EXAMPLE
First few rows of array:
1 2 4 6 7 8 10
2 1 3 5 6 7 9
4 1 1 3 4 5 7
6 3 1 1 2 3 5
10 7 5 3 2 1 1
12 9 7 5 4 3 1
16 13 11 9 8 7 5
PROG
(PARI) nonprime(n) = my(a=1, b=n); while(a!=b, a=b; b=n+primepi(a)); b; \\ A018252
T(n, k) = abs(prime(n)-nonprime(k));
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Michel Marcus, Apr 19 2022
STATUS
approved