OFFSET
1,1
COMMENTS
Apparently, the prime terms of A225563 are relatively rare. For example, of the first 10^4 terms of A225563, only 23 are primes.
Alternatively, odd primes p such that phi(phi(p)), the number of primitive roots modulo p, is a power of two. Primes such that all odd prime divisors of p-1 are Fermat primes. - Paul Vanderveen, Mar 29 2022
From Jianing Song, May 29 2026: (Start)
Along with 2, primes p such that values taken by chi are all constructible numbers for all Dirichlet characters chi modulo p. General k satisfying this condition are listed in A396553.
LINKS
Jianing Song, Table of n, a(n) for n = 1..539 (all terms < 10^1000)
Wikipedia, Constructible number.
Wikipedia, Dirichlet character.
MATHEMATICA
totQ[n_] := PrimeQ[n] && Module[{it = Most@FixedPointList[EulerPhi, n], sum, x}, sum = Plus @@ it; If[OddQ[sum], False, CoefficientList[Product[1 + x^i, {i, it}], x][[1 +sum/2]] > 0]]; Select[Range[10^3], totQ]
PROG
(PARI) ispower2(n) = (bitand(n, n-1) == 0)
isA335120(p) = (p>2 && isprime(p) && ispower2(eulerphi(p-1))) \\ Jianing Song, May 29 2026
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, May 24 2020
STATUS
approved
