OFFSET
2,3
LINKS
Rémy Sigrist, Table of n, a(n) for n = 2..10012 (rows for n = 2..142 flattened)
FORMULA
T(n, k) <= k.
T(n, 1) = 1.
EXAMPLE
Triangle T(n, k) begins:
1;
1, 2;
1, 2, 2;
1, 2, 3, 4;
1, 2, 3, 4, 5;
1, 2, 3, 4, 3, 6;
1, 2, 3, 4, 2, 4, 7;
1, 2, 3, 4, 3, 6, 3, 8;
1, 2, 3, 4, 5, 6, 6, 8, 9;
1, 2, 3, 4, 5, 6, 7, 8, 8, 10;
1, 2, 3, 4, 5, 6, 6, 8, 9, 6, 11;
1, 2, 3, 4, 5, 6, 6, 8, 9, 6, 11, 6;
...
PROG
(PARI) T(n, k) = { my (x0 = k, y0 = prime(x0), x1 = n, y1 = prime(x1), x2 = 0); forprime (y2 = 2, oo, x2++; if (x0 * (y1 - y2) + x1 * (y2 - y0) + x2 * (y0 - y1)==0, return (x2); ); ); }
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Rémy Sigrist, Sep 28 2024
STATUS
approved