OFFSET
1,2
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
EXAMPLE
a(24) = gcd(89-1, 97-1) = gcd(88, 96) = 8.
MATHEMATICA
Table[GCD[# - 1, NextPrime@ # - 1] &@ Prime@ n, {n, 102}] (* Michael De Vlieger, Dec 31 2016 *)
GCD[#[[1]], #[[2]]]&/@Partition[Prime[Range[110]]-1, 2, 1] (* Harvey P. Dale, Aug 26 2020 *)
PROG
(PARI) a(n) = gcd(prime(n)-1, prime(n+1)-1); \\ Michel Marcus, Dec 11 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Dec 06 2000
EXTENSIONS
Offset corrected to 1 by Michel Marcus, Dec 11 2013
STATUS
approved