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 11-12 of 12 results.

A175932 Smallest prime p such that there exist exactly n integers b such that 1 < b < p and b^(p-1) == 1 (mod p^2) or, equivalently, Fermat quotient q_p(b) == 0 (mod p).

Original entry on oeis.org

2, 29, 11, 269, 487, 653, 5107, 103291, 40487, 2544079, 1093, 3511, 1006003
Offset: 0

Views

Author

Max Alekseyev, Oct 24 2010

Keywords

Comments

a(n) is the smallest prime p such that A242830(PrimePi(p)) = n, PrimePi = A000720. - Jianing Song, Jan 27 2019

Examples

			a(5) = 653 since 653 is the smallest prime with exactly five bases b = 84, 120, 197, 287, 410.
		

Crossrefs

Programs

  • PARI
    first_n_entries(n)=v=vector(n); toGo=n; forprime(p=2, , count=sum(b=2, p-1, Mod(b, p^2)^(p-1)==1); if(count<=(n-1)&!v[count+1], v[count+1]=p; toGo--; if(!toGo, return(v)))) \\ Jeppe Stig Nielsen, Jul 31 2015, changed to include a(0) = 2 by Jianing Song, Feb 05 2019

Extensions

a(0) = 2 prepended by Jianing Song, Jan 27 2019

A334048 Primes p that set a new record for the number of bases 1 < b < p for which p is a base-b Wieferich prime and b is not a perfect power.

Original entry on oeis.org

2, 11, 71, 269, 653, 5107, 103291, 728471, 2544079
Offset: 1

Views

Author

Jeppe Stig Nielsen, Sep 06 2020

Keywords

Comments

p is a base-b Wieferich prime iff b^(p-1) == 1 (mod p^2).
Records in A248865 sometimes arise when all the b values (bases) are powers of the same small integer. By excluding powers, we find primes that are Wieferich in many "independent" ways.

Examples

			Prime 5107 is Wieferich to six bases (under 5107), namely 560, 1209, 1779, 2621, 4295, 4361, none of which are perfect powers. A prime such as 1093 is Wieferich to ten bases, namely 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024; however, when dismissing perfect powers, only one of the ten bases is left. In fact, no prime less than 5107 has six or more bases when perfect powers are dismissed, so 5107 sets a record and is included in this sequence.
		

Crossrefs

Programs

  • PARI
    r=-oo; forprime(p=2,, i=sum(b=2,p-1,!ispower(b) && Mod(b,p^2)^(p-1)==1); if(i>r, print1(p, ", "); r=i))

Extensions

a(8)-a(9) from Kellen Shenton added by Jeppe Stig Nielsen, Sep 12 2020
Previous Showing 11-12 of 12 results.