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.

A123692 Primes p such that p^2 divides 5^(p-1) - 1.

Original entry on oeis.org

2, 20771, 40487, 53471161, 1645333507, 6692367337, 188748146801
Offset: 1

Views

Author

Max Alekseyev, Oct 07 2006

Keywords

Comments

Dorais and Klyve proved that there are no further terms up to 9.7*10^14.
From Felix Fröhlich, Jan 06 2017: (Start)
a(6) and a(7) were found by Keller and Richstein (cf. Keller, Richstein, 2005).
Prime terms of A242959. (End)
From Jianing Song, Jun 21 2025: (Start)
The ring of integers of Q(5^(1/k)) is Z[5^(1/k)] if and only if k does not have a prime factor in this sequence (k is even or in A342391). See Theorem 5.3 of the paper of Keith Conrad. For example, we have:
(1 + sqrt(5))/2 is an algebraic integer, but it is not in Z[sqrt(5)];
(1 + 5^(10385/20771) + 5^(2*10385/20771) + ... + 5^(10384*10385/20771))/20771 is an algebraic integer, but it is not in Z[5^(1/20771)];
(1 + 5^(40486/40487) + 5^(2*40486/40487) + ... + 5^(40486*40486/40487))/40487 is an algebraic integer, but it is not in Z[5^(1/40487)]. (End)

References

  • Paulo Ribenboim, The Little Book of Bigger Primes, Springer-Verlag NY 2004. See p. 233.

Crossrefs

Programs

  • Mathematica
    Select[Prime[Range[2500]], Divisible[5^(# - 1) - 1, #^2] &] (* Alonso del Arte, Aug 01 2014 *)
    Select[Prime[Range[55*10^6]],PowerMod[5,#-1,#^2]==1&] (* The program generates the first 4 terms of the sequence. *) (* Harvey P. Dale, Jan 29 2023 *)
  • PARI
    N=10^9; default(primelimit, N);
    forprime(n=2, N, if(Mod(5, n^2)^(n-1)==1, print1(n, ", ")));
    \\ Joerg Arndt, May 01 2013

Extensions

More terms from Alexander Adamchuk, Nov 27 2006
Updated by Max Alekseyev, Jan 29 2012