OFFSET
0,8
LINKS
G. C. Greubel, Rows n = 0..50 of triangle, flattened
EXAMPLE
Triangle begins:
0;
0, 0;
0, 1, 0;
0, 2, 2, 0;
0, 2, 3, 2, 0;
0, 3, 4, 4, 3, 0;
0, 3, 6, 8, 6, 3, 0;
0, 4, 8, 11, 11, 8, 4, 0;
0, 4, 9, 16, 19, 16, 9, 4, 0;
MAPLE
with(numtheory); seq(seq(pi(binomial(n, k)), k = 0 .. n), n = 0 .. 12); # G. C. Greubel, Aug 14 2019
MATHEMATICA
Flatten[Table[Table[PrimePi[Binomial[n, j]], {j, 0, n}], {n, 0, 15}], 1]
PROG
(PARI) T(n, k) = primepi(binomial(n, k));
for(n=0, 12, for(k=0, n, print1(T(n, k), ", "))) \\ G. C. Greubel, Aug 14 2019
(Magma) [#PrimesUpTo(Binomial(n, k)): k in [0..n], n in [0..12]]; // G. C. Greubel, Aug 14 2019
(Sage) [[prime_pi(binomial(n, k)) for k in (0..n)] for n in (0..12)] # G. C. Greubel, Aug 14 2019
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Labos Elemer, Apr 02 2003
STATUS
approved