login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A143544
Triangle read by rows, T(n,k) = 2 if n is prime, 1 otherwise; 1<=k<=n.
2
1, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
OFFSET
1,2
COMMENTS
Row sums = A143545: (1, 4, 6, 4, 10, 6, 14,...) = componentwise addition of (1, 2, 3, 4, 5,...) and A061397: (0, 2, 3, 0, 5, 0, 7,...).
LINKS
FORMULA
Triangle read by rows, T(n,k) = 2 if n is prime, 1 otherwise; 1<=k<=n.
T(n, k) = A143536(n, k) + 1. - Georg Fischer, Oct 31 2021
EXAMPLE
First few rows of the triangle =
1;
2, 2;
2, 2, 2;
1, 1, 1, 1;
2, 2, 2, 2, 2;
1, 1, 1, 1, 1, 1;
2, 2, 2, 2, 2, 2, 2;
...
MATHEMATICA
Table[1 + Boole[PrimeQ[n]], {n, 11}, {k, n}] // Flatten (* Michael De Vlieger, Oct 31 2021 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Gary W. Adamson, Aug 23 2008
STATUS
approved