cp's OEIS Frontend

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.

Showing 1-3 of 3 results.

A083566 a(1) = 1; for n>1, a(n) = smallest odd number > a(n-1) such that a(1)*...*a(n) + 2 is a prime.

Original entry on oeis.org

1, 3, 5, 7, 9, 15, 19, 25, 27, 53, 57, 65, 71, 87, 101, 151, 195, 247, 253, 255, 277, 289, 291, 301, 321, 355, 361, 443, 455, 461, 491, 531, 533, 541, 599, 603, 619, 635, 647, 667, 805, 817, 871, 1003, 1011, 1179, 1205, 1223, 1327, 1357, 1531, 1551, 1603, 1619
Offset: 1

Views

Author

Amarnath Murthy and Meenakshi Srikanth (menakan_s(AT)yahoo.com), Jun 13 2003

Keywords

Crossrefs

Programs

  • Mathematica
    a[1] = 1; a[n_] := a[n] = Block[{k = a[n - 1] + 2}, While[ !PrimeQ[k*Times @@ Table[a[i], {i, 1, n - 1}] + 2], k += 2]; k]; Table[ a[n], {n, 1, 54}]
    nxt[{pr_,a_}]:=Module[{k=a+2},While[!PrimeQ[pr k+2],k=k+2];{pr k,k}]; NestList[nxt,{1,1},60][[;;,2]] (* Harvey P. Dale, Jul 10 2023 *)

Extensions

Edited and extended by Robert G. Wilson v, Jun 17 2003
Edited by N. J. A. Sloane, Nov 01 2008 at the suggestion of R. J. Mathar

A084724 Beginning with 2, the smallest even number greater than the previous term such that every partial product + 1 is a prime.

Original entry on oeis.org

2, 6, 8, 12, 16, 18, 20, 22, 26, 36, 42, 44, 100, 120, 124, 162, 168, 174, 192, 218, 272, 278, 338, 364, 380, 392, 502, 512, 532, 560, 594, 614, 698, 790, 814, 838, 922, 938, 1072, 1082, 1092, 1102, 1146, 1182, 1256, 1354, 1360, 1484, 1508, 1566, 1662, 1690
Offset: 1

Views

Author

Amarnath Murthy and Meenakshi Srikanth (menakan_s(AT)yahoo.com), Jun 13 2003

Keywords

Crossrefs

Programs

  • Mathematica
    ppp[{p_,a_}]:=Module[{n=a+2},While[!PrimeQ[p*n+1],n=n+2];{p*n,n}]; NestList[ ppp,{2,2},60][[All,2]] (* Harvey P. Dale, Aug 12 2017 *)

Extensions

More terms from David Wasserman, Jan 03 2005

A084725 Primes arising in A084724. a(n) = N-th partial product of A084724 +1.

Original entry on oeis.org

3, 13, 97, 1153, 18433, 331777, 6635521, 145981441, 3795517441, 136638627841, 5738822369281, 252508184248321, 25250818424832001, 3030098210979840001, 375732178161500160001, 60868612862163025920001
Offset: 1

Views

Author

Amarnath Murthy and Meenakshi Srikanth (menakan_s(AT)yahoo.com), Jun 13 2003

Keywords

Crossrefs

Extensions

More terms from David Wasserman, Jan 03 2005
Showing 1-3 of 3 results.