OFFSET
1,4
EXAMPLE
The sum of the reciprocals of the first 9 terms is 1 + 1 + 1 + 1/2 + 1/3 + 1 + 1/3 + 1 + 1 = 43/6. (And the numerator, 43, is prime.) Adding the reciprocal of 1 to this gets 49/6 (in reduced form). But 49 is composite. However, adding the reciprocal of 2 to 43/6 gets 23/3 (when written in reduced form). 23 is a prime, so therefore a(10) = 2.
MATHEMATICA
a = {1}; s = 1; Do[i = 1; While[ ! PrimeQ[Numerator[s + 1/i]], i++ ]; s = s + 1/i; AppendTo[a, i], {80}]; a (* Stefan Steinerberger, Oct 27 2007 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Oct 24 2007
EXTENSIONS
More terms from Stefan Steinerberger, Oct 27 2007
STATUS
approved