login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; table; graph; refs; listen; history; text; internal format)
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
Sequence in context: A214564 A102675 A177849 * A031346 A335808 A087472
KEYWORD
nonn,tabl
AUTHOR
Gary W. Adamson, Aug 23 2008
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 11:31 EDT 2024. Contains 371792 sequences. (Running on oeis4.)