The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A018205 Let m=n+1; a(n) is the least positive integer s, not a multiple of m, such that if 1<=d<=m and (d,m)=1, then d divides one of the numbers s-m, s-2m, ..., s-m[ s/m ]. 0

%I #11 Mar 22 2013 14:59:26

%S 3,5,7,13,11,19,23,34,37,51,47,76,69,71,93,147,106,184,137,164,192,

%T 275,167,313,251,316,303,365,329,553,317,458,563,548,427,697,563,739,

%U 591,940,617,1051,747,712,1003,1251,761,1219

%N Let m=n+1; a(n) is the least positive integer s, not a multiple of m, such that if 1<=d<=m and (d,m)=1, then d divides one of the numbers s-m, s-2m, ..., s-m[ s/m ].

%o (PARI) a(n) = {m = n+1; s = m; while (1, sok = 1; if (s % m, for (d=1, m, if (gcd(d,m) == 1, ndok = 0; for (k=1, floor(s/m), if (((s-k*m) % d) == 0, ndok = 1; break;););); if (! ndok, sok = 0; break;);); if (sok, return(s)););s++;);} \\ _Michel Marcus_, Mar 22 2013

%K nonn

%O 1,1

%A _Clark Kimberling_

%E More terms from _Michel Marcus_, Mar 22 2013

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 16 05:56 EDT 2024. Contains 372549 sequences. (Running on oeis4.)