OFFSET
1,1
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..1000
EXAMPLE
gcd(5^7-1,6) = 2, gcd(5^7-2,5) = 1, so a(7) = 2.
MATHEMATICA
Table[m = 1; While[GCD[5^n - m, n - m] != 1, m++]; m, {n, 1, 140}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jul 27 2012
STATUS
approved