|
|
A143536
|
|
Triangle read by rows, T(n,k) = 1 if n is prime, 0 otherwise.
|
|
4
|
|
|
0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
(list;
table;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Row sums = A061397: (0, 2, 3, 0, 5, 0, 7,...).
|
|
LINKS
|
|
|
FORMULA
|
Triangle read by rows, T(n,k) = 1 if n is prime, 0 otherwise. Mobius transform (A054525) of triangle A143535.
|
|
EXAMPLE
|
First few rows of the triangle =
0;
1, 1;
1, 1, 1;
0, 0, 0, 0;
1, 1, 1, 1, 1;
0, 0, 0, 0, 0, 0;
1, 1, 1, 1, 1, 1, 1;
...
|
|
PROG
|
(Haskell)
a143536 n k = a143536_tabl !! (n-1) !! (k-1)
a143536_row n = a143536_tabl !! (n-1)
a143536_tabl = zipWith take [1..] $ map repeat a010051_list
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|