OFFSET
1,1
COMMENTS
EXAMPLE
a(3) = 7 because the smallest k such that 1|k, 2|k+1, 3|k+2, and 4 does not divide k+3 is 7.
a(4) = 13 because the smallest k such that 1|k, 2|k+1, 3|k+2, 4|k+3, and 5 does not divide k+4 is 13.
MATHEMATICA
f[n_] := Block[{lcm = LCM @@ Range@ n}, If[ lcm == LCM @@ Range[n + 1], 0, lcm + 1]]; Array[ f, 42] (* Robert G. Wilson v, Nov 13 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Oct 30 2014
EXTENSIONS
a(5) corrected (0, not 181) by Jon Perry, Nov 05 2014
Sequence corrected by Robert G. Wilson v, Nov 13 2014
STATUS
approved