OFFSET
1,1
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..500
EXAMPLE
gcd(9+1,4-1) = gcd(9+2,4-2) = gcd(9+3, 4-3) = 1 and gcd(9+4, 4-4) > 1, so that a(2) = 4.
MATHEMATICA
b[n_] := 3^n; c[n_] := 2^n; Table[m = 1; While[GCD[b[n] + m, c[n] - m] == 1, m++]; m, {n, 150}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jul 24 2012
STATUS
approved