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.

A081545 Smallest prime which is 1 more than the product of n distinct composite numbers.

Original entry on oeis.org

2, 5, 37, 193, 2161, 23041, 241921, 2903041, 55987201, 958003201, 17915904001, 250822656001, 5518098432001, 142216445952001, 2897001676800001, 90386452316160001, 1807729046323200001, 52563198423859200001
Offset: 0

Views

Author

Amarnath Murthy, Apr 01 2003

Keywords

Comments

Let K(m) be the smallest possible K satisfying the Theorem. Conjecture: K(m) ~ m, i.e., a(k) ~ A002808(1)*...*A002808(k), only very few of the last factors will be insignificantly larger.
Let K(b,r) be the smallest possible K satisfying the Corollary, i.e., the index from which on all a(k)-1 are multiples of b^r. With the preceding conjecture, there are asymptotically at least (k+PrimePi(A002808(k)))/b multiples of b among the factors of a(k)-1, so this is an (asymptotic) lower bound on r.
Experimentally, a(k) = 1 + Product_{i>=1} prime(i)^e(i), with e(1)~k*3/2, e(2)~k*2/3, e(3)~k/4, e(4)~k/5, ... (Here ~ is not asymptotic equivalence.) Is there a simple formula? - M. F. Hasler, Jun 16 2007

Examples

			Writing c(n) for the n-th composite number A002808(n):
a(0) = (Product_{i=1..0} c(i))+1 = 1+1 = 2 (empty product).
a(1) = c(1)+1 = 4+1 = 5.
a(2) = c(1)*c(4)+1 = 4*9+1 = 37, since c(1)*c(k)+1 is not prime for k < 4.
a(3) = c(1)*c(2)*c(3)+1 = 4*6*8 + 1 = 193.
a(4) = c(1)*c(2)*c(4)*c(5)+1 = 2161, nothing better since c(6)*c(3) > c(5)*c(4).
a(5) = c(1)*c(2)*c(3)*c(5)*c(6)+1 = 23041, none better since c(7)*c(4) > c(5)*c(6).
a(6) = c(1)*c(2)*c(3)*c(4)*c(5)*c(7)+1 = 241921, best since c(1)*...*c(6)+1 is not prime.
a(7) = p(7)+1 = 2903041 with p(n) = Product_{i=1..n} c(i). - _M. F. Hasler_, Jun 16 2007
		

Crossrefs

Cf. A002808 (composite numbers), A073918, A081546, A131100.

Programs

  • PARI
    A081545(n, b=0 /*best*/, p=1 /*product*/, f=[]/*factors*/)={ if( #f= f[n+1] ) || !b = A081545( n-1, b, p*f[n], f), while( isprime( f[n]++ ),) /* next composite */ ); b } /* then vector(30,n,A081545(n-1)) gives the first 30 terms */ \\ M. F. Hasler, Jun 16 2007

Formula

Theorem: For any m > 0 there is a K > 0 such that for all k > K, a(k)-1 is divisible by the first m composite numbers.
Corollary: For any b > 1, r > 0 there is a K > 0 such that for all k > K, a(k) == 1 (mod b^r). Taking b=10 shows that all a(k) > a(8) end in 0..01 with an increasing number of zeros. - M. F. Hasler, Jun 16 2007

Extensions

More terms from Michel ten Voorde Jun 13 2003
Terms beyond a(8) by M. F. Hasler Jun 16 2007

A081547 Smallest composite number which is 1 more than the product of n (not necessarily distinct) prime numbers.

Original entry on oeis.org

4, 10, 9, 25, 33, 65, 129, 385, 513, 1025, 2049, 4097, 8193, 16385, 32769, 98305, 131073, 262145, 524289, 1048577, 2097153, 4194305, 8388609, 16777217, 33554433, 67108865, 134217729, 268435457, 536870913, 1073741825, 2147483649
Offset: 1

Views

Author

Amarnath Murthy, Apr 01 2003

Keywords

Comments

a(2*n+1) = 2^(2*n+1)+1, n>0. - Vladeta Jovovic, Apr 02 2003

Crossrefs

Programs

  • Mathematica
    cno[n_]:=Module[{a=2^n+1},If[PrimeQ[a],2^(n-1)*3+1,a]]; Join[{4,10}, Array[cno,30,3]] (* Harvey P. Dale, Mar 24 2012 *)
  • Python
    from sympy import isprime
    def A081547(n): return 10 if n==2 else ((3<Chai Wah Wu, Sep 02 2024

Formula

For n>2, a(n) = 2^n+1 unless this is a Fermat prime (A019434), in which case a(n) = 2^(n-1)*3+1 (which is divisible by 5). - Dean Hickerson, Apr 05 2003

Extensions

More terms from Vladeta Jovovic, Apr 02 2003

A081548 Smallest composite number which is 1 more than the product of n distinct primes.

Original entry on oeis.org

4, 15, 106, 391, 3991, 30031, 510511, 9699691, 223092871, 6469693231, 255887521891, 7420738134811, 304250263527211, 13082761331670031, 614889782588491411, 32589158477190044731, 1922760350154212639071, 117288381359406970983271, 7858321551080267055879091, 557940830126698960967415391
Offset: 1

Views

Author

Amarnath Murthy, Apr 01 2003

Keywords

Crossrefs

Formula

If n is in A014545, then a(n) > A002110(n)+1, otherwise a(n) = A002110(n)+1. - Chai Wah Wu, Sep 02 2024

Extensions

Corrected and extended by David Wasserman, Jun 08 2004
a(18)-a(20) from Chai Wah Wu, Sep 02 2024
Showing 1-3 of 3 results.