OFFSET
1,1
COMMENTS
It is usually the case that, for prime p and k > 1, the first time the totient function phi(n) has value p^k - p^(k-1) is for n = p^k. However, this is not true when p^k - p^(k-1) + 1 is prime.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Totient Function
Eric Weisstein's World of Mathematics, Totient Valence Function
MATHEMATICA
lst={}; maxNum=10^6; n=1; While[p=Prime[n]; p^2-p+1<maxNum, i=2; While[m=p^i-p^(i-1)+1; m<maxNum, If[PrimeQ[m], AppendTo[lst, m]]; i++ ]; n++ ]; Sort[lst]
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Aug 15 2003
STATUS
approved