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.

This page as a plain text file.
%I A143536 #5 Mar 21 2014 17:33:43
%S A143536 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,
%T A143536 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,
%U A143536 0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1
%N A143536 Triangle read by rows, T(n,k) = 1 if n is prime, 0 otherwise.
%C A143536 Row sums = A061397: (0, 2, 3, 0, 5, 0, 7,...).
%H A143536 Reinhard Zumkeller, <a href="/A143536/b143536.txt">Rows n = 1..125 of table, flattened</a>
%F A143536 Triangle read by rows, T(n,k) = 1 if n is prime, 0 otherwise. Mobius transform (A054525) of triangle A143535.
%e A143536 First few rows of the triangle =
%e A143536 0;
%e A143536 1, 1;
%e A143536 1, 1, 1;
%e A143536 0, 0, 0, 0;
%e A143536 1, 1, 1, 1, 1;
%e A143536 0, 0, 0, 0, 0, 0;
%e A143536 1, 1, 1, 1, 1, 1, 1;
%e A143536 ...
%o A143536 (Haskell)
%o A143536 a143536 n k = a143536_tabl !! (n-1) !! (k-1)
%o A143536 a143536_row n = a143536_tabl !! (n-1)
%o A143536 a143536_tabl = zipWith take [1..] $ map repeat a010051_list
%o A143536 -- _Reinhard Zumkeller_, Mar 21 2014
%Y A143536 Cf. A143535, A061397.
%Y A143536 Cf. A010051.
%K A143536 nonn,tabl
%O A143536 1,1
%A A143536 _Gary W. Adamson_, Aug 23 2008