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.

A249241 a(n) = p - prime(n)!/prime(n)#, where p is the smallest prime number > prime(n)!/prime(n)#+1.

Original entry on oeis.org

2, 2, 3, 5, 11, 7, 29, 17, 17, 397, 47, 67, 23, 41, 31, 157, 409, 31, 151, 109, 199, 191, 131, 61, 103, 547, 179, 269, 389, 317, 181, 331, 307, 173, 1259, 1289, 619, 131, 223, 683, 139, 241, 191, 101, 1039, 1367, 1153, 241, 1187, 479, 149, 181, 487, 1093, 571, 1151, 809, 199, 823, 491, 191, 151, 1321, 197, 163, 337, 467, 659, 673, 877, 487, 743, 313, 673, 857, 677, 1021
Offset: 1

Views

Author

Werner D. Sand, Oct 23 2014

Keywords

Comments

Conjecture: All terms are prime.
While Fortune's conjecture (A005235) uses products of primes, this sequence uses products of composite numbers (more exactly: of nonprimes, because 1 belongs to them). It looks like all multiples of prime(n)# (except some powers) lead to a sequence which contains only prime numbers.

Examples

			n = 1; prime(1)!/prime(1)# = 2/2 = 1; p = nextprime(1+1) = 3; a(1) = 3-1 = 2.
		

Crossrefs

Cf. A092435.

Programs

  • MuPAD
    q:=1; p:=1; for i from 1 to 100 do q:=nextprime(q+1); p:=p*q; N:=nextprime((fact(q)/p)+2)-fact(q)/p; print(i,N); end_for:
    
  • PARI
    A092435(n)=prime(n)!/prod(i=1,n,prime(i))
    a(n)=my(t=A092435(n)); nextprime(t+2)-t \\ Charles R Greathouse IV, Oct 23 2014