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.
%I A141064 #42 Jun 17 2019 03:20:38 %S A141064 2,5,7,11,23,29,89,137,311,367,1021,3217,5441,2377,12619,65761,5741, %T A141064 144593,13859,78511,1462397,33461,469957,2552939,11096497,5930669, %U A141064 6343133,26512597,470831,127626137,372222703,15955507,538270693,531077333,11401285549,38613943,15433507333,92554537183,113828092793 %N A141064 List of different primes in Pascal-like triangles with index of asymmetry y = 1 and index of obliquity z = 0 or z = 1. %C A141064 For the Pascal-like triangle G(n, k) with index of asymmetry y = 1 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, k) = G(n+1, k-1) + G(n+1, k) + G(n+2, k) for n >= 0 and k = 1..(n+1). %C A141064 For the Pascal-like triangle G(n, k) with index of asymmetry y = 1 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, k) = G(n+1, k-1) + G(n+1, k-2) + G(n+2, k-1) for n >= 0 and k = 2..(n+2). %C A141064 In each row of A140998, the primes not appearing in earlier rows are collected, sorted, and added to the sequence. [_R. J. Mathar_, Apr 28 2010] %C A141064 From Petros Hadjicostas, Jun 10 2019: (Start) %C A141064 For the triangle with index of asymmetry y = 1 and index of obliqueness z = 0, read by rows, we have G(n, k) = A140998(n, k) for 0 <= k <= n. %C A141064 For the triangle with index of asymmetry y = 1 and index of obliqueness z = 1, read by rows, we have G(n, k) = A140993(n+1, k+1) for 0 <= k <= n. %C A141064 Thus, except for the (unfortunate) shifting of the indices by 1, triangular arrays A140998 and A140993 are mirror images of each other. %C A141064 Hence, instead of working with A140998, we may work with A140993: in each row of A140993, the primes not appearing in earlier rows may be collected, sorted, and added to the sequence (paraphrasing R. J. Mathar above!). %C A141064 (End) %H A141064 Juri-Stepan Gerasimov, <a href="/A140998/a140998.jpg">Stepan's triangles and Pascal's triangle are connected by the recurrence relation ...</a> %e A141064 Pascal-like triangle with y = 1 and z = 0 (i.e, A140998) begins as follows: %e A141064 1, so no prime. %e A141064 1 1, so no primes. %e A141064 1 2 1, so a(1) = 2. %e A141064 1 4 2 1, so no new primes. %e A141064 1 7 5 2 1, so a(2) = 5 and a(3) = 7. %e A141064 1 12 11 5 2 1, so a(4) = 11. %e A141064 1 20 23 12 5 2 1, so a(5) = 23. %e A141064 1 33 46 28 12 5 2 1, so no new primes. %e A141064 1 54 89 63 29 12 5 2 1, so a(6) = 29 and a(7) = 89. %e A141064 1 88 168 137 69 29 12 5 2 1, so a(8) = 137. %e A141064 1 143 311 289 161 70 29 12 5 2 1, so a(9) = 311. %e A141064 1 232 567 594 367 168 70 29 12 5 2 1, so a(10) = 367. %e A141064 ... %e A141064 [edited by _Petros Hadjicostas_, Jun 11 2019] %p A141064 # This is a modification _R. J. Mathar_'s program from A141031 (for the case y = 4 and z = 0). %p A141064 # Construct array A140998 (y = 1 and z = 0): %p A141064 A140998 := proc(n, k) option remember; if k < 0 or n < k then 0; elif k = 0 or k = n then 1; elif k = n - 1 then 2; else procname(n - 1, k) + procname(n - 2, k) + procname(n - 2, k - 1); end if; end proc; %p A141064 # Construct the current sequence: %p A141064 A141064 := proc(nmax) local a, b, n, k, new; a := []; for n from 0 to nmax do b := []; for k from 0 to n do new := A140998(n, k); if not (new = 1 or not isprime(new) or new in a or new in b) then b := [op(b), new]; end if; end do; a := [op(a), op(sort(b))]; end do; RETURN(a); end proc; %p A141064 # Generate terms of the current sequence: %p A141064 A141064(38); %p A141064 # If one wants to get the primes sorted, then replace RETURN(a) in the Maple code above with RETURN(sort(a)). In such a case, however, the output sequence is not uniquely defined because it depends on the maximum n. - _Petros Hadjicostas_, Jun 15 2019 %Y A141064 Cf. A140993, A140994, A140995, A140996, A140997, A140998, A141021, A141022, A141031, A141066, A141067. %K A141064 nonn %O A141064 1,1 %A A141064 _Juri-Stepan Gerasimov_, Jul 14 2008 %E A141064 Partially edited by _N. J. A. Sloane_, Jul 18 2008 %E A141064 More terms from _R. J. Mathar_, Apr 28 2010 %E A141064 More terms from _Petros Hadjicostas_, Jun 11 2019