OFFSET
1,1
COMMENTS
It is conjectured that a(n) = n + A002034(n).
Dean Hickerson remarks (Oct 07 2001) that the above conjecture is easy to prove: (n+1)(n+2)...(n+r) is congruent to r! (mod n), so n divides (n+1)(n+2)...(n+r) if and only if n divides r!.
FORMULA
a(n) = n + A002034(n).
EXAMPLE
a(6) = 9 as 6 divides 7 * 8 * 9 but does not divide 7 * 8.
MATHEMATICA
a[n_] := For[r=1, True, r++, If[Mod[r!, n]==0, Return[n+r]]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Apr 23 2001
STATUS
approved