OFFSET
1,2
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
MAPLE
MATHEMATICA
Table[GCD[Prime[w]-1, w], {w, 128}]
PROG
(PARI) a(n) = gcd(prime(n)-1, n); \\ Michel Marcus, Feb 02 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Labos Elemer, Jun 13 2003
STATUS
approved