login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A084310
a(n) = gcd(prime(n)+1, n).
5
1, 2, 3, 4, 1, 2, 1, 4, 3, 10, 1, 2, 1, 2, 3, 2, 1, 2, 1, 4, 1, 2, 1, 6, 1, 2, 1, 4, 1, 6, 1, 4, 3, 2, 5, 4, 1, 2, 3, 2, 1, 14, 1, 2, 9, 2, 1, 16, 1, 10, 3, 4, 1, 18, 1, 8, 3, 2, 1, 6, 1, 2, 7, 8, 1, 6, 1, 2, 3, 70, 1, 72, 1, 2, 5, 4, 1, 2, 1, 10, 3, 2, 1, 14, 5, 2, 3, 2, 1, 2, 13, 4, 1, 2, 5, 24, 1, 2, 1, 2
OFFSET
1,2
LINKS
MAPLE
A084310:= n-> igcd(ithprime(n)+1, n): seq(A084310(n), n=1..150); # Wesley Ivan Hurt, Jan 27 2017
MATHEMATICA
Table[GCD[Prime[w]+1, w], {w, 128}]
PROG
(PARI) a(n) = gcd(prime(n)+1, n); \\ Michel Marcus, Jan 27 2017
KEYWORD
nonn,easy
AUTHOR
Labos Elemer, Jun 13 2003
STATUS
approved