OFFSET
2,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 2..1000
FORMULA
a(n) = Min{phi(c) : prime(n) < c < prime(n+1)}.
EXAMPLE
p(30)=113 is followed by 13 composites; phi of these are {36, 88, 56, 72, 58, 96, 32, 110, 60, 80, 60, 100, 36}, the smallest of which is 32=a(30) and the largest is 110.
MATHEMATICA
Min[EulerPhi[Range[First[#]+1, Last[#]-1]]]&/@Partition[Prime[Range[ 2, 80]], 2, 1] (* Harvey P. Dale, Aug 18 2011 *)
Table[Min[EulerPhi[Range[Prime[i], Prime[i+1]]]], {i, 2, 100}] (* T. D. Noe, Aug 18 2011 *)
PROG
(PARI) { n=1; q=3; m=10^6; forprime (p=5, prime(1003), a=m; for (i=q + 1, p - 1, a=min(eulerphi(i), a)); q=p; write("b061106.txt", n++, " ", a) ) } \\ Harry J. Smith, Jul 18 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, May 29 2001
STATUS
approved