OFFSET
1,2
LINKS
G. C. Greubel, Rows n = 1..50 of the triangle, flattened
EXAMPLE
Triangle begins as:
0;
2, 0;
0, 2, 0;
1, 1, 1, 1;
0, 2, 0, 1, 0;
1, 1, 1, 1, 1, 1;
0, 2, 0, 1, 0, 1, 0;
1, 1, 1, 1, 1, 1, 1, 1;
0, 2, 0, 1, 0, 1, 0, 1, 0;
0, 2, 0, 1, 0, 1, 0, 1, 0, 0;
MATHEMATICA
PROG
(Magma)
A039701:= func< n | NthPrime(n) mod 3 >;
[A118683(n, k): k in [1..n], n in [1..12]]; // G. C. Greubel, Apr 01 2024
(SageMath)
def A039701(n): return nth_prime(n)%3
flatten([[A039701(n, k) for k in range(1, n+1)] for n in range(1, 13)]) # G. C. Greubel, Apr 01 2024
CROSSREFS
KEYWORD
AUTHOR
Roger L. Bagula, May 19 2006
EXTENSIONS
Offset corrected, definition clarified, sequence extended by Assoc. Eds. of the OEIS, Jun 15 2010
STATUS
approved