login
A141070
Number of primes in rows of Pascal-like triangles with index of asymmetry y = 3 and index of obliquity z = 0 or z = 1.
8
0, 0, 1, 1, 1, 1, 3, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 3, 3, 3, 3, 3, 3, 5, 4, 3, 3, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 3, 4, 3, 3, 3, 5, 3, 4, 3, 3, 3, 4, 3, 3, 3, 3, 3, 3, 4, 3, 4, 4, 3, 3, 3, 3, 5, 4, 4, 3, 3, 3, 3, 4, 3, 3, 3, 3, 3, 4, 3, 3, 3, 3, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 3, 3, 3
OFFSET
1,7
COMMENTS
For the Pascal-like triangle G(n, k) with index of asymmetry y = 3 and index of obliqueness z = 0, which is read by rows, we have G(n, 0) = G(n+1, n+1) = 1, G(n+2, n+1) = 2, G(n+3, n+1) = 4, G(n+4, n+1) = 8, and G(n+5, k) = G(n+1, k-1) + G(n+1, k) + G(n+2, k) + G(n+3, k) + G(n+4, k) for n >= 0 and k = 1..(n+1). (This is array A140996.)
For the Pascal-like triangle with index of asymmetry y = 3 and index of obliqueness z = 1, which is read by rows, we have G(n, n) = G(n+1, 0) = 1, G(n+2, 1) = 2, G(n+3, 2) = 4, G(n+4, 3) = 8, and G(n+5, k) = G(n+1, k-3) + G(n+1, k-4) + G(n+2, k-3) + G(n+3, k-2) + G(n+4, k-1) for n >= 0 and k = 4..(n+4). (This is array A140995.)
From Petros Hadjicostas, Jun 13 2019: (Start)
The two triangular arrays A140995 and A140996, which are described above, are mirror images of each other. Thus, we get the same sequence no matter which one we use.
Even though the numbering of the rows of both triangular arrays A140995 and A140996 starts at n = 0, the author of this sequence set up the offset at n = 1; that is, a(n) = number of primes in row n - 1 for A140995 (or for A140996) for n >= 1.
Finally, we mention that in the attached picture about Stepan's triangles, the letter s is used to describe the index of asymmetry and the letter e is used to describe the index of obliqueness (instead of the letters y and z, respectively).
(End)
EXAMPLE
Pascal-like triangle with y = 3 and z = 0 (i.e, A140996) begins as follows:
1, so a(1) = 0.
1 1, so a(2) = 0.
1 2 1, so prime 2 and a(3) = 1.
1 4 2 1, so prime 2 and a(4) = 1.
1 8 4 2 1, so prime 2 and a(5) = 1.
1 16 8 4 2 1, so prime 2 and a(6) = 1.
1 31 17 8 4 2 1, so primes 2, 17, 31 and a(7) = 3.
1 60 35 17 8 4 2 1, so primes 2, 17 and a(8) = 2.
1 116 72 35 17 8 4 2 1, so primes 2, 17 and a(9) = 2.
1 224 148 72 35 17 8 4 2 1, so primes 2, 17 and a(10) = 2.
1 432 303 149 72 35 17 8 4 2 1, so primes 2, 17, 149 and a(11) = 3.
...
MATHEMATICA
nlim = 100;
For[n = 0, n <= nlim, n++, G[n, 0] = 1];
For[n = 1, n <= nlim, n++, G[n, n] = 1];
For[n = 2, n <= nlim, n++, G[n, n-1] = 2];
For[n = 3, n <= nlim, n++, G[n, n-2] = 4];
For[n = 4, n <= nlim, n++, G[n, n-3] = 8];
For[n = 5, n <= nlim, n++, For[k = 1, k < n-3, k++,
G[n, k] = G[n-4, k-1] + G[n-4, k] + G[n-3, k] + G[n-2, k] +
G[n-1, k]]];
A141070 = {}; For[n = 0, n <= nlim, n++, c = 0;
For[k = 0, k <= n, k++, If[PrimeQ[G[n, k]], c++]];
AppendTo[A141070, c]];
A141070 (* Robert Price, Jul 03 2019 *)
KEYWORD
nonn,more
AUTHOR
EXTENSIONS
Partially edited by N. J. A. Sloane, Jul 18 2008
More terms and comments edited by Petros Hadjicostas, Jun 13 2019
a(52)-a(100) from Robert Price, Jul 03 2019
STATUS
approved