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!)
A301618 Least k > n such that gcd(k+1,n+1) > gcd(k,n) > 1. 0

%I #13 May 26 2018 17:21:19

%S 8,15,14,35,20,63,14,24,32,143,38,195,20,27,50,323,56,399,26,54,68,

%T 575,34,90,32,39,86,899,92,1023,38,84,44,65,110,1443,44,51,122,1763,

%U 128,1935,50,114,140,2303,62,119,56,63,158,2915,64,90,62,144,176,3599,182,3843

%N Least k > n such that gcd(k+1,n+1) > gcd(k,n) > 1.

%F If p is a prime, a(p) = p*(p+2).

%F a(n) >= A299143(n). - _Michel Marcus_, Mar 26 2018

%e From _Michael De Vlieger_, Apr 21 2018: (Start)

%e a(1) is not defined since 1 is coprime to all numbers.

%e a(2) = 8 since gcd(2,8) = 2 and gcd(3,9) = 3. Of numbers 3 <= m < 8, gcd(2,m) > 1 for m even, but gcd(3,m+1) = 1.

%e a(3) = 15 since gcd(3,15) = 3 and gcd(4,16) = 4. Of numbers 4 <= m < 15, gcd(3,m) > 1 for 3 | m, but gcd(4,m+1) = 1. (End)

%t Array[Block[{k = # + 1}, While[Not[GCD[k + 1, # + 1] > GCD[k, #] > 1], k++]; k] &, 60, 2] (* _Michael De Vlieger_, Apr 21 2018 *)

%o (PARI) a(n) = {my(k = n+1); while((gcd(k,n) == 1) || (gcd(k+1,n+1) <= gcd(k,n)), k++); k;} \\ _Michel Marcus_, Mar 26 2018

%Y Cf. A299143.

%K nonn

%O 2,1

%A _Alex Ratushnyak_, Mar 24 2018

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 August 13 20:02 EDT 2024. Contains 375144 sequences. (Running on oeis4.)