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.

A259261 Fixed points in A073673.

Original entry on oeis.org

1, 2, 3, 13, 39, 55, 527, 776, 910, 942
Offset: 1

Views

Author

Derek Orr, Jun 22 2015

Keywords

Comments

Numbers k such that A073673(k) = k.
a(8) > 750. - R. J. Mathar, Jul 14 2015

Crossrefs

Cf. A073673.

Programs

  • PARI
    v=[1];n=1;print1(1,", ");while(#v<300,s=1+n*prod(i=1,#v,v[i]);if(ispseudoprime(s)&&!vecsearch(vecsort(v),n),v=concat(v,n);if(n==#v,print1(n,", "));n=0);n++)

Extensions

a(8)-a(10) from Michael S. Branicky, May 19 2023

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

Original entry on oeis.org

2, 6, 8, 12, 16, 10, 4, 30, 26, 22, 24, 14, 50, 42, 18, 64, 46, 60, 32, 36, 20, 34, 28, 108, 48, 44, 68, 282, 90, 54, 76, 62, 180, 66, 132, 86, 74, 38, 58, 106, 120, 52, 244, 94, 100, 82, 138, 156, 98, 72, 172, 150, 248, 154, 166, 114, 162, 126, 124, 208, 222, 324, 212
Offset: 1

Views

Author

Amarnath Murthy and Meenakshi Srikanth (menakan_s(AT)yahoo.com), May 06 2003

Keywords

Comments

Is this a permutation of the even numbers?
For any even positive integers a_1, a_2, ..., a_n, there are infinitely many even positive integers t such that a_1 a_2 ... a_n t + 1 is prime: this follows from Dirichlet's theorem on primes in arithmetic progressions. As far as I know there is no guarantee that the sequence defined here leads to a permutation of the even numbers, i.e. there might be some even integer that never appears in the sequence. However, if the partial products a_1 ... a_n grow like 2^n n!, heuristically the probability of a_1 ... a_n t + 1 being prime is on the order of 1/log(a_1 ... a_n) ~ 1/(n log n), and since sum_n 1/(n log n) diverges we might expect that there should be infinitely many n for which some a_1 ... a_n t + 1 is prime, and thus every even integer should occur. - Robert Israel, Dec 20 2012

Examples

			2+1=3, 2*6+1=13, 2*6*8+1=97, 2*6*8*12+1=1153, etc. are primes.
After 200 terms the prime is
224198929826405912196464851358435330956778558123234657623126\
069546460095464785674042966210907411841359152393200850271694\
899718487202330385432243578646330245831108247815285116235792\
875886417750289946171599027675234787802312202111702704952223\
563058999855839876391430601719636148884060097930252529666254\
756431522481046758186320659298713737639441014068272279177710\
551232067814381240340990584869121776471244800000000000000000\
00000000000000000000000000000 (449 digits). - _Robert Israel_, Dec 21 2012
		

Crossrefs

Programs

  • Maple
      N := 200: # number of terms desired
    P := 2:
    a[1] := 2:
    C := {seq(2*j, j = 2 .. 10)}:
    Cmax := 20:
    for n from 2 to N do
       for t in C do
          if isprime(t*P+1) then
            a[n]:= t;
            P:= t*P;
            C:= C minus {t};
            break;
          end if;
       end do;
       while not assigned(a[n]) do
         t0:= Cmax+2;
         Cmax:= 2*Cmax;
         C:= C union {seq(j, j=t0 .. Cmax, 2)};
         for t from t0 to Cmax by 2 do
           if isprime(t*P+1) then
             a[n]:= t;
             P:= t*P;
             C:= C minus {t};
             break;
           end if
         end do;
       end do;
    end do;
    [seq(a[n],n=1..N)];
  • Mathematica
    f[s_List] := Block[{k = 2, p = Times @@ s}, While[ MemberQ[s, k] || !PrimeQ[k*p + 1], k += 2]; Append[s, k]]; Nest[f, {2}, 62] (* Robert G. Wilson v, Dec 24 2012 *)

Extensions

More terms from David Wasserman, Nov 23 2004
Edited by N. J. A. Sloane, Dec 20 2012
Comment edited, Maple code and additional terms by Robert Israel, Dec 20 2012

A083275 a(n) = smallest number not occurring earlier such that a(1)*a(2)*...*a(n) - 1 is prime.

Original entry on oeis.org

3, 1, 2, 4, 7, 5, 6, 11, 12, 10, 13, 17, 14, 16, 15, 8, 18, 23, 21, 26, 22, 27, 41, 30, 20, 57, 32, 29, 24, 65, 42, 38, 28, 63, 35, 19, 58, 31, 36, 61, 45, 37, 33, 69, 53, 67, 127, 40, 95, 25, 86, 48, 39, 72, 70, 79, 54, 74, 91, 125, 85, 94, 46, 9, 80, 60, 119, 167, 139, 90, 49
Offset: 1

Views

Author

Vladeta Jovovic, Jun 01 2003

Keywords

Crossrefs

Programs

  • Maple
    b:= proc() false end:
    m:= proc(n) option remember; a(n)*m(n-1) end: m(0):=1:
    a:= proc(n) option remember; local k; for k while b(k)
          or not isprime(k*m(n-1)-1) do od; b(k):=true; k
        end:
    seq(a(n), n=1..80); # Alois P. Heinz, Jun 17 2015
  • Mathematica
    p=1; L={}; Do[k=1; While[ MemberQ[L, k] || !PrimeQ[p*k - 1], k++]; p *= k; AppendTo[L, k], {30}]; L (* Giovanni Resta, Jun 23 2015 *)
  • PARI
    v=[3];n=1;while(n<100,s=-1+n*prod(i=1,#v,v[i]);if(isprime(s)&&!vecsearch(vecsort(v),n),v=concat(v,n);n=0);n++);v \\ Derek Orr, Jun 16 2015

Extensions

Name corrected by Derek Orr, Jun 16 2015
Showing 1-3 of 3 results.