OFFSET
1,7
FORMULA
T(n,n) = 1.
EXAMPLE
T(5,1)=10 prime(1)=2 in 7+2+2=5+2+2+2=3+3+3+2=3+2+2+2+2,
T(5,2)=6 prime(2)=3: in 5+3+3=3+3+3+2=3+2+2+2+2,
T(5,3)=2 prime(3)=5: in 5+3+3=5+2+2+2,
T(5,4)=1 prime(4)=7: in 7+2+2.
Triangle begins:
1;
0, 1;
1, 1, 1;
3, 1, 1, 1;
10, 6, 2, 1, 1;
...
MATHEMATICA
ip[p_] := ip[p] = IntegerPartitions[p, All, Select[Range[p], PrimeQ]] // Flatten;
T[n_, k_] := Count[ip[Prime[n]], Prime[k]];
Table[T[n, k], {n, 1, 13}, {k, 1, n}] // Flatten (* Jean-François Alcover, Sep 23 2021 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Reinhard Zumkeller, Jul 21 2004
EXTENSIONS
Name modified by Jean-François Alcover, Sep 23 2021
STATUS
approved