OFFSET
1,1
COMMENTS
FORMULA
T(n, k) = prime(n) mod 2*prime(k), 1<=k<=n.
EXAMPLE
Triangle begins:
2;
3, 3;
1, 5, 5;
3, 1, 7, 7;
3, 5, 1, 11, 11;
1, 1, 3, 13, 13, 13;
1, 5, 7, 3, 17, 17, 17;
...
MAPLE
A079950 := proc(n, k)
modp(ithprime(n), 2*ithprime(k)) ;
end proc:
seq(seq(A079950(n, k), k=1..n), n=1..12) ; # R. J. Mathar, Sep 28 2017
PROG
(PARI) T(n, k) = prime(n) % (2*prime(k));
tabl(nn) = for (n=1, nn, for (k=1, n, print1(T(n, k), ", ")); print); \\ Michel Marcus, Sep 21 2017
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Reinhard Zumkeller, Jan 19 2003
STATUS
approved