cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A143536 Triangle read by rows, T(n,k) = 1 if n is prime, 0 otherwise.

Original entry on oeis.org

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
Offset: 1

Views

Author

Gary W. Adamson, Aug 23 2008

Keywords

Comments

Row sums = A061397: (0, 2, 3, 0, 5, 0, 7,...).

Examples

			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;
...
		

Crossrefs

Programs

  • 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
    -- Reinhard Zumkeller, Mar 21 2014

Formula

Triangle read by rows, T(n,k) = 1 if n is prime, 0 otherwise. Mobius transform (A054525) of triangle A143535.