A164738 Triangle read by rows. Row 0 = {2}; left half of row n+1 = row n, right half = row n reversed with each term replaced by the next prime.
2, 2, 3, 2, 3, 5, 3, 2, 3, 5, 3, 5, 7, 5, 3, 2, 3, 5, 3, 5, 7, 5, 3, 5, 7, 11, 7, 5, 7, 5, 3, 2, 3, 5, 3, 5, 7, 5, 3, 5, 7, 11, 7, 5, 7, 5, 3, 5, 7, 11, 7, 11, 13, 11, 7, 5, 7, 11, 7, 5, 7, 5, 3, 2, 3, 5, 3, 5, 7, 5, 3, 5, 7, 11, 7, 5, 7, 5, 3, 5, 7, 11, 7, 11, 13, 11, 7, 5, 7, 11, 7, 5, 7, 5, 3, 5, 7, 11, 7
Offset: 0
Examples
The triangle begins: 2; 2, 3; 2, 3, 5, 3; 2, 3, 5, 3, 5, 7, 5, 3; 2, 3, 5, 3, 5, 7, 5, 3, 5, 7, 11, 7, 5, 7, 5, 3; ...
Links
- Alois P. Heinz, Rows n = 0..13, flattened
Programs
-
Mathematica
Flatten[NestList[Join[ #, NextPrime[Reverse[ # ]]] &, {2}, 7]] (* Zak Seidov, Aug 24 2009 *)
Extensions
More terms from Zak Seidov, Aug 24 2009
Edited by Zak Seidov and N. J. A. Sloane, Aug 25 2009
Offset 0 from Alois P. Heinz, Oct 31 2023
Comments