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.

Previous Showing 31-36 of 36 results.

A259835 a(n) is the number of odd primes of the form b^(2^n)+1 that are less than A123599(n+1).

Original entry on oeis.org

1, 1, 1, 1, 41, 152, 122, 185, 8, 860, 24, 612, 97094
Offset: 0

Views

Author

Jeppe Stig Nielsen, Jul 06 2015

Keywords

Comments

A generalized Fermat prime b^(2^n)+1 can be thought of as belonging to the "family" n. Then a(n) counts how many generalized Fermat primes in family n precede the first generalized Fermat prime in family n+1.
Each family as defined here is a subset of its preceding family, in the sense that b^(2^n) + 1 = (b^2)^(2^(n-1)) + 1.
a(12) is expected to be near 97000.

Examples

			To find a(5), find all primes b^32 + 1 until you reach a base b that is a perfect square. In this case you find 152 nonsquare b values { 30, 54, 96, 112, ..., 10396 }, but the 153rd b is 10404, a perfect square. So 10404^32 + 1 = 102^64 + 1 belongs to the next family. Therefore a(5)=152.
		

Crossrefs

Programs

  • PARI
    b=2;for(n=0,100,x=0;until(,if(ispseudoprime(b^(2^n)+1),if(issquare(b,&b),break,x++));b+=2);print("a(",n,")=",x,", next b is ",b))

Extensions

a(12) via b-file of A088362 from Jeppe Stig Nielsen, Feb 16 2022

A334053 Least b such that b^(2^n) + 1 is a Proth prime (A080076).

Original entry on oeis.org

2, 2, 2, 2, 2, 96, 6912, 960, 16256, 2013184, 235520, 61184, 125440, 992256, 155615232, 550207488, 12192710656
Offset: 0

Views

Author

Jeppe Stig Nielsen, Sep 07 2020

Keywords

Comments

Every term b is in A116882 (the prime factor 2 of b must account for more than the square root of b).
For n up to about 11, a(n) can be found with the PARI function below. From there up to n=14, you can find a(n) by filtering lists of known primes of the form b^(2^n) + 1.

Crossrefs

Programs

  • PARI
    a(n) = forstep(b=2,+oo,2,2*valuation(b,2)>logint(b,2)&&ispseudoprime(b^(2^n)+1)&&return(b))

Extensions

a(15) calculated by Pavel Atnashev added by Jeppe Stig Nielsen, Sep 18 2020
a(16) calculated by Pavel Atnashev added by Jeppe Stig Nielsen, Jan 05 2021

A182065 Smallest average of twin prime pairs s such that s^(2^n)+1 is prime.

Original entry on oeis.org

4, 4, 4, 198, 30, 102, 3000, 7332, 4482, 187218, 150, 114690, 713310, 1943532, 3467622, 4470420, 23045178, 12529818
Offset: 1

Views

Author

Manuel Valdivia, Apr 09 2012

Keywords

Comments

The averages of this sequence are base values in generalized Fermat primes.

Examples

			198^(2^4)+1 = 5580113648647376991977566450378407937 is prime.
		

Crossrefs

Programs

  • Mathematica
    t=Select[Table[Prime[n]+1,{n,10^5}],PrimeQ[#1+1]&]; s:=t[[m]]; Table[m=1; While[!PrimeQ[s^(2^n)+1],m++]; s,{n,1,9}](* Last five terms obtained by intersection with Yves Gallot records.*)

Formula

a(n) = (A014574(k))^(2^n)+1, for k = 1, 1, 1, 15, 5, 9, 82, 166, 117, 2055, 12, 1366, 6162, 14522, ...

Extensions

a(15)-a(18) from Jeppe Stig Nielsen, Sep 14 2022

A277967 Number of even numbers b with 0 < b < 2^n such that b^(2^n) + 1 is prime.

Original entry on oeis.org

0, 1, 2, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 2, 3, 4, 1
Offset: 1

Views

Author

Jeppe Stig Nielsen, Nov 06 2016

Keywords

Comments

The choice whether to take b < 2^n or b <= 2^n matters only for n=1 and n=2 unless there are more primes like 2^2+1 and 4^4+1 (see A121270).
Perfect squares b are allowed.
a(20) was determined after a lengthy computation by distributed project PrimeGrid, cf. A321323. - Jeppe Stig Nielsen, Jan 02 2019

Examples

			For n=18, we get b^262144 + 1 is prime for b=24518, 40734, 145310, 361658, 525094, ...; the first 3 of these b values are strictly below 262144, hence a(18)=3.
The corresponding primes are 2^4+1; 2^8+1, 4^8+1; 2^16+1; 30^32+1; 120^128+1; 46^512+1; etc.
		

Crossrefs

Programs

  • Mathematica
    Table[Count[Range[2, 2^n - 1, 2], b_ /; PrimeQ[b^(2^n) + 1]], {n, 9}] (* Michael De Vlieger, Nov 10 2016 *)
  • PARI
    a(n)=sum(k=1,2^(n-1)-1,ispseudoprime((2*k)^2^n+1)) \\ slow, only probabilistic primality test

Extensions

a(20) from Jeppe Stig Nielsen, Jan 02 2019

A338931 Least b such that b^(2^n) + 1 is an odd Pierpont prime (A005109).

Original entry on oeis.org

2, 2, 2, 2, 2, 54, 162, 8310407949893763072, 46438023168, 65229815808, 396718580736, 629856, 152461794335880672662217818112
Offset: 0

Views

Author

Jeppe Stig Nielsen, Nov 16 2020

Keywords

Comments

Every term is even (A005843) and 3-smooth (A003586).
For n = 0, 1, 2, 3, 4, 7, 8, 9, 12, ..., the corresponding number b^(2^n) + 1 is also a Proth prime (A080076), while for n = 5, 6, 10, 11, ..., it is a non-Proth.
The form b^(2^n) + 1 is called a generalized Fermat number.

Examples

			a(7) corresponds to prime 8310407949893763072^128 + 1 = (2^47*3^10)^128 + 1.
		

Crossrefs

A358621 Smallest b > 1 such that b^(2^n)+1 is a Sophie Germain prime.

Original entry on oeis.org

2, 2, 160, 140, 2800, 8660, 62150, 4085530, 922820, 4629490, 5802710, 1146175000, 90894850
Offset: 0

Views

Author

Jeppe Stig Nielsen, Nov 23 2022

Keywords

Comments

In other words, 2*b^(2^n)+3 is also prime.
For n > 1, a(n) ends in 0 because b is even (or else b^(2^n)+1 would have 2 as a proper divisor) and b == 0 (mod 5) (or else 2*b^(2^n)+3 would have 5 as a proper divisor).

Crossrefs

Programs

  • PARI
    a(n)=n<2&&return(2);forstep(b=10,+oo,10,ispseudoprime(b^(2^n)+1)&&ispseudoprime(2*b^(2^n)+3)&&return(b))
Previous Showing 31-36 of 36 results.