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.

A084718 a(n) = A084717(n+1)/A084717(n).

Original entry on oeis.org

2, 2, 2, 2, 4, 2, 3, 6, 4, 5, 5, 5, 10, 4, 3, 5, 8, 22, 13, 14, 2, 5, 5, 2, 20, 9, 9, 24, 5, 26, 15, 14, 25, 25, 4, 9, 30, 9, 21, 12, 11, 10, 2, 40, 19, 8, 13, 11, 50, 3, 25, 25, 8, 5, 25, 46, 19, 47, 54, 9, 13, 14, 43, 4, 24, 28, 16, 33, 25, 152, 2
Offset: 1

Views

Author

Amarnath Murthy, Jun 11 2003

Keywords

Comments

Equals A084402 without the first term. - R. J. Mathar, Sep 17 2008

Crossrefs

Extensions

Edited by Don Reble, Jun 19 2003

A036012 a(n) = smallest number > 1 such that a(1)a(2)...a(n) + 1 is prime.

Original entry on oeis.org

2, 2, 3, 3, 2, 6, 3, 2, 4, 7, 7, 3, 8, 6, 2, 3, 6, 9, 6, 14, 19, 11, 4, 4, 19, 4, 13, 3, 10, 13, 15, 4, 11, 9, 2, 5, 26, 19, 52, 21, 20, 63, 4, 19, 17, 6, 29, 19, 3, 5, 51, 11, 14, 15, 7, 12, 44, 34, 7, 21, 32, 3, 22, 10, 19, 19, 7, 20, 4, 22, 4, 17, 35, 47, 40, 14, 5, 14, 36, 39, 16
Offset: 1

Views

Author

Keywords

Comments

Except for the first term, same as A084401. - David Wasserman, Dec 22 2004

Crossrefs

Equals A084716(n+1)/A084716(n).

Programs

  • Maple
    n := 1: while true do j := 2: while not isprime(j*n+1) do j := j+1: od: print(j): n := n*j: od:
  • Mathematica
    a[1] = 2; a[n_] := a[n] = Catch[For[an = 2, True, an++, If[PrimeQ[Product[a[k], {k, 1, n - 1}]*an + 1], Throw[an]]]]; Table[a[n], {n, 1, 81}] (* Jean-François Alcover, Nov 27 2012 *)
    nxt[{t_,n_}]:=Module[{k=2},While[!PrimeQ[t*k+1],k++];{t*k,k}]; NestList[ nxt,{2,2},80][[All,2]] (* Harvey P. Dale, Oct 03 2020 *)
  • Python
    from gmpy2 import is_prime
    from itertools import count, islice
    def agen(): # generator of terms
        p = 1
        while True:
            an = next(k for k in count(2) if (t:=p*k+1) == 1 or is_prime(t))
            p *= an
            yield an
    print(list(islice(agen(), 81))) # Michael S. Branicky, Jan 20 2024

Formula

Conjecture: a(n) = O(n). - Thomas Ordowski, Aug 08 2017

Extensions

More terms from Erich Friedman
More terms from Jud McCranie, Jan 26 2000
Description corrected by Len Smiley

A084716 a(1) = 1, a(n) = smallest multiple of a(n-1) > a(n-1) such that a(n) + 1 is a prime.

Original entry on oeis.org

1, 2, 4, 12, 36, 72, 432, 1296, 2592, 10368, 72576, 508032, 1524096, 12192768, 73156608, 146313216, 438939648, 2633637888, 23702740992, 142216445952, 1991030243328, 37829574623232, 416125320855552, 1664501283422208, 6658005133688832, 126502097540087808
Offset: 1

Views

Author

Amarnath Murthy, Jun 11 2003

Keywords

Crossrefs

Programs

  • Mathematica
    a[1] = 1; a[n_] := a[n] = Catch[For[k = 2, True, k++, an = k*a[n - 1]; If[PrimeQ[an + 1], Throw[an]]]]; Table[a[n], {n, 1, 23}] (* Jean-François Alcover, Nov 27 2012 *)

Extensions

Edited by Don Reble, Jun 19 2003
Showing 1-3 of 3 results.