OFFSET
1,1
EXAMPLE
a(14)=11 because 14*Pi/11 = 3.998... and the fractional part 0.998... represents the greatest remainder resulting from the division of 14*Pi by a prime number less than 14*Pi.
MATHEMATICA
f[n_] := Denominator[ Max[ FractionalPart[(n*Pi / Prime@ Range@ PrimePi@ Floor[n*Pi - 1])]] [[2]]]; Array[f, 73] (* Robert G. Wilson v, Apr 08 2007 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Axel Harvey, Apr 04 2007
EXTENSIONS
Edited and extended by Robert G. Wilson v, Apr 08 2007
STATUS
approved