OFFSET
1,1
COMMENTS
FORMULA
EXAMPLE
First few rows of the triangle =
1;
0, 1;
0, 0, 1;
1, 0, 0, 1;
0, 1, 0, 0, 1;
1, 0, 1, 0, 0, 1;
0, 1, 0, 1, 0, 0, 1;
1, 0, 1, 0, 1, 0, 0, 1;
1, 1, 0, 1, 0, 1, 0, 0, 1;
1, 1, 1, 0, 1, 0, 1, 0, 0, 1;
0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1;
1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1;
0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1;
1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1;
...
Example: T(6,4) = 0 since (6 - 4 + 1) = 3, prime.
MATHEMATICA
Table[If[PrimeQ[n-k+1], 0, 1], {n, 15}, {k, n}]//Flatten (* Harvey P. Dale, Jul 19 2016 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Gary W. Adamson & Mats Granvik, Feb 28 2009
STATUS
approved