A247164 Primes p such that Product_{d|(p-2)} phi(d) = Product_{d|(p-1)} phi(d) where phi(x) = Euler totient function (A000010).
3, 5, 7, 17, 257, 65537, 991172807, 1872619667, 4081364447
Offset: 1
Examples
Prime 17 is in the sequence because A029940(15) = A029940(16) = 64.
Programs
-
Magma
[n: n in [3..100000] | IsPrime(n) and (&*[EulerPhi(d): d in Divisors(n-2)]) eq (&*[EulerPhi(d): d in Divisors(n-1)])];
Formula
A029940(a(n)) = a(n) - 1.
Extensions
a(8)-a(9) from Jinyuan Wang, Jul 27 2025
Comments