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.

A128852 Anti-elite primes: a prime number p is called anti-elite if only a finite number of Fermat numbers 2^(2^n)+1 are quadratic non-residues mod p.

Original entry on oeis.org

2, 13, 17, 97, 193, 241, 257, 641, 673, 769, 2689, 5953, 8929, 12289, 40961, 49921, 61681, 65537, 101377, 114689, 274177, 286721, 319489, 414721, 417793, 550801, 786433, 974849, 1130641, 1376257, 1489153, 1810433, 2424833, 3602561, 6700417
Offset: 1

Views

Author

Tom Mueller, Apr 16 2007

Keywords

Comments

There are infinitely many anti-elite primes.

Examples

			Let F_r:=2^(2^r)+1 = r-th Fermat number. Then a(2)=13 because for all r>1 we have F_r == 4 (mod 13) if r is even, resp. F_r == 10 (mod 13) if r is odd. Notice that 4 and 10 are quadratic residues modulo 13.
		

References

  • Alexander Aigner; Über Primzahlen, nach denen (fast) alle Fermatzahlen quadratische Nichtreste sind. Monatsh. Math. 101 (1986), pp. 85-93

Crossrefs

Cf. A102742.
Contains all Fermat prime factors of Fermat numbers (A023394) that are greater than 5.

Programs

  • PARI
    isAntiElite(n) = if(isprime(n) && n > 2, my(d = znorder(Mod(2,n)), StartPoint = valuation(d,2), LengthTest = znorder(Mod(2, d >> StartPoint))); for(i = StartPoint, StartPoint + LengthTest - 1, if(!issquare(Mod(2,n)^2^i + 1), return(0))); 1, n == 2) \\ Jianing Song, May 15 2024