login
This site is supported by donations to The OEIS Foundation.

 

Logo

Invitation: celebrating 50 years of OEIS, 250000 sequences, and Sloane's 75th, there will be a conference at DIMACS, Rutgers, Oct 9-10 2014.

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

Table of n, a(n) for n=1..38.

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}] (from Robert G. Wilson v, May 31 2005)

CROSSREFS

Sequence in context: A103852 A157040 A049226 * A116485 A126563 A067134

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 | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified August 28 05:25 EDT 2014. Contains 246160 sequences.