%I #6 Jul 30 2012 17:44:19
%S 2,1,2,2,4,1,2,1,2,2,4,1,2,1,2,3,4,1,2,1,2,2,4,1,2,1,2,2,4,1,2,1,2,2,
%T 4,2,2,1,2,2,4,1,4,1,2,2,4,1,2,1,2,2,4,1,2,1,2,3,4,1,2,1,2,2,4,1,2,1,
%U 2,3,4,1,2,1,2,2,4,2,2,1,2,2,4,1,2,1,2
%N Least m>0 such that 5^n-m and n-m are relatively prime.
%H Clark Kimberling, <a href="/A214718/b214718.txt">Table of n, a(n) for n = 1..1000</a>
%e gcd(5^7-1,6) = 2, gcd(5^7-2,5) = 1, so a(7) = 2.
%t Table[m = 1; While[GCD[5^n - m, n - m] != 1, m++]; m, {n, 1, 140}]
%Y Cf. A214716.
%K nonn,easy
%O 1,1
%A _Clark Kimberling_, Jul 27 2012
|