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.

A354532 Numbers k that are not Mersenne exponents (A000043) such that 2*(2^k-1) is in A354525.

Original entry on oeis.org

1, 9, 67, 137, 727
Offset: 1

Views

Author

Jianing Song, Aug 16 2022

Keywords

Comments

2^a(n) - 1 is a semiprime for n = 2,3,4,5.
Conjecture: all terms beyond a(2) = 9 are primes.

Examples

			k = 9: 2^9 - 1 = 7*73 (not a prime), and we have 2*(2^9-1) + 7 = 7^3 is 7-smooth and 2*(2^9-1) + 73 = 3*5*73 is 73-smooth, so 9 is a term.
k = 67: 2^67 - 1 = 193707721*761838257287 (not a prime), and we have 2*(2^67-1) + 193707721 = 3*5^2*16033*1267117*193707721 is 193707721-smooth and 2*(2^67-1) + 761838257287 = 3*5011*25771*761838257287 is 761838257287-smooth, so 67 is a term.
k = 137: 2^137 - 1 = 32032215596496435569*5439042183600204290159 (not a prime), and we have 2*(2^137-1) + 32032215596496435569 = 379*28702069570449626861*32032215596496435569 is 32032215596496435569-smooth and 2*(2^137-1) + 5439042183600204290159 = 9007*7112738002996877*5439042183600204290159 is 5439042183600204290159-smooth, so 137 is a term.
		

Crossrefs

Programs

  • PARI
    gpf(n) = vecmax(factor(n)[, 1]);
    ispsmooth(n,p,{lim=1<<256}) = if(n<=lim, n==1 || gpf(n)<=p, my(N=n/p^valuation(n,p)); forprime(q=2, p, N=N/q^valuation(N,q); if((N<=lim && isprime(N)) || N==1, return(N<=p))); 0); \\ check if n is p-smooth, using brute force if n is too large
    isA354532(n,{lim=256},{p_lim=1<<32}) = {
      my(N=2^n-1);
      if(isprime(N), return(0));
      if(n>lim, forprime(p=3, p_lim, if(N%p==0 && !ispsmooth(2*N+p,p), return(0)))); \\ first check if there is a prime factor p <= p_lim of 2^n-1 such that 2*(2^n-1)+p is not p-smooth (for large n)
      my(d=divisors(n));
      for(i=1, #d, my(f=factor(2^d[i]-1)[, 1]); for(j=1, #f, if(!ispsmooth(2*N+f[j],f[j],1<
    				

Formula

By definition, equals A354531 \ A000043.

Extensions

a(5) from Jinyuan Wang, Jan 21 2025

A354534 Even terms in A354525 that are not twice the Mersenne primes (A000668).

Original entry on oeis.org

2, 1022, 295147905179352825854, 348449143727040986586495598010130648530942
Offset: 1

Views

Author

Jianing Song, Aug 16 2022

Keywords

Comments

Terms in A354533 that are not twice the Mersenne primes. Note that all twice the Mersenne primes are in A354533.

Examples

			See A354532.
		

Crossrefs

Programs

  • PARI
    lista(nn,{lim=256},{lim_p=1<<32}) = for(n=1, nn, if(isA354532(n,lim,lim_p), print1(2*(2^n-1), ", "))) \\ See A354532 for the function isA354532

Formula

a(n) = 2*(2^A354532(n) - 1) = 2*A354537(n).

A354536 Numbers k such that 2*k is in A354525.

Original entry on oeis.org

1, 3, 7, 31, 127, 511, 8191, 131071, 524287, 2147483647, 2305843009213693951, 147573952589676412927, 618970019642690137449562111, 162259276829213363391578010288127, 170141183460469231731687303715884105727, 174224571863520493293247799005065324265471
Offset: 1

Views

Author

Jianing Song, Aug 17 2022

Keywords

Comments

Numbers k such that for every prime factor p of k we have gpf(2*k+p) = p, gpf = A006530.
Numbers k such that for every prime factor p of k, 2*k+p is p-smooth.
a(17) = 2^521 - 1 is too large to include here. - Jinyuan Wang, Jan 21 2025

Examples

			See A354532.
		

Crossrefs

Programs

  • PARI
    lista(nn,{lim=256},{lim_p=1<<32}) = for(n=1, nn, if(isA354531(n,lim,lim_p), print1(2^n-1, ", "))) \\ See A354531 for the function isA354531

Formula

a(n) = 2^A354531(n) - 1 = A354533(n)/2.
Showing 1-3 of 3 results.