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!)
A214715 Least m>0 such that prime(n+1)-m and n-m are relatively prime. 1
2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 4, 1, 2, 1, 4, 2, 4, 1, 2, 1, 2, 1, 2, 1, 6, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 1, 2, 1, 2, 2, 4, 1, 2, 1, 2, 2, 4, 1, 2, 1, 2, 2, 4, 2, 6, 1, 2, 1, 4, 1, 2, 1, 2, 1, 4, 1, 6, 1, 2, 1, 2, 1, 2, 1, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
gcd(89-1,11-1) = 2, gcd(89-2,11-2) = 3, gcd(89-3,11-3) = 2, gcd(89-4,11-4) = 1, so a(23) = 4.
MATHEMATICA
Table[m = 1; While[GCD[Prime[n+1] - m, n - m] != 1, m++]; m, {n, 1, 140}]
CROSSREFS
Cf. A214714.
Sequence in context: A064547 A318306 A345935 * A244145 A371734 A086435
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jul 27 2012
STATUS
approved

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 16 14:51 EDT 2024. Contains 371749 sequences. (Running on oeis4.)