OFFSET
1,3
EXAMPLE
a(1) = first value M which is not divisible by 2, but is divisible by (M mod 2). a(1) = 1.
a(2) = 0.
a(3) = first value M which is not divisible by 2, 3 or 5, but is divisible by (M mod 2) + (M mod 3) + (M mod 5). a(3) = 119.
a(4) = first value M which is not divisible by 2, 3, 5 or 7, but is divisible by (M mod 2) + (M mod 3) + (M mod 5) + (M mod 7). a(4) = 649.
MATHEMATICA
f[n_] := If[n == 2, 0, Block[{k = 0, p = Prime[ Range[n]]}, While[j = Mod[k, p]; Sort[j][[1]] == 0 || Mod[k, Plus @@ Mod[k, p]] != 0, k++ ]; k]]; Table[ f[n], {n, 10}] (* Robert G. Wilson v, May 31 2005 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Chuck Seggelin (seqfan(AT)plastereddragon.com), May 30 2005
EXTENSIONS
a(23)-a(38) from Robert G. Wilson v, May 31 2005
STATUS
approved