This site is supported by donations to The OEIS Foundation.

"Email this user" was broken Aug 14 to 9am Aug 16. If you sent someone a message in this period, please send it again.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A106572 a(n) = smallest M such that M is not divisible by prime(1), ..., prime(n), but is divisible by Sum_{i=1..n} (M mod prime(i)); or 0 if no such M exists. 0
 1, 0, 119, 649, 13, 493, 989, 667, 4399, 67, 3763, 4819, 4717, 9943, 179, 20437, 15677, 193, 26797, 27977, 21251, 37267, 68923, 45671, 131179, 72967, 105779, 76409, 117961, 131867, 147109, 243169, 152447, 200653, 158399, 254563, 306079, 215639 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,3 LINKS 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 Sequence in context: A157040 A256907 A049226 * A126563 A067134 A156930 Adjacent sequences:  A106569 A106570 A106571 * A106573 A106574 A106575 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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.