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!)
A214054 Least m>0 such that n!!+m and n-m have a common divisor > 1. 4

%I #8 Jul 26 2012 13:50:43

%S 1,2,1,1,1,2,1,1,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,

%T 1,2,1,2,1,2,1,2,1,2,1,2,1,1,1,2,1,2,1,2,1,2,1,2,1,1,1,2,1,2,1,2,1,2,

%U 1,2,1,2,1,2,1,2,1,2,1,1,1,2,1,1,1,2,1,2,1

%N Least m>0 such that n!!+m and n-m have a common divisor > 1.

%H Clark Kimberling, <a href="/A214054/b214054.txt">Table of n, a(n) for n = 1..1000</a>

%e For n=6: gcd(n!!+1,n-1) = 1 and gcd(n!!+2,n-2)=2, so that a(6)=2.

%t b[n_]:=n!!;c[n_]:=n;

%t t=Table[m=1;While[GCD[b[n]+m,c[n]-m]==1,m++];m,{n,1,200}] (* A214054 *)

%t Flatten[Position[t,1]] (* A214585 *)

%t Flatten[Position[t,2]] (* A214586 *)

%Y Cf. A214585, A214586.

%K nonn,easy

%O 1,2

%A _Clark Kimberling_, Jul 21 2012

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 April 25 12:33 EDT 2024. Contains 371969 sequences. (Running on oeis4.)