OFFSET
1,2
LINKS
Raghavendra Bhat, An Abelian Loop for Non-Composites, arXiv:2110.14716 [math.GM], 2021.
FORMULA
T(n, n) = 1.
T(n, 1) = n.
EXAMPLE
Triangle begins:
1;
3, 1;
5, 3, 1;
7, 5, 3, 1;
11, 11, 7, 5, 1;
13, 11, 11, 7, 3, 1;
17, 17, 13, 11, 7, 5, 1;
...
PROG
(PARI) f(n) = prime(n)-(n==1); /* A006005 */
T(n, k) = {my(j=1, m = abs(f(n)-f(k))); while (f(j) < m, j++); f(j); }
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Michel Marcus, Nov 01 2021
STATUS
approved