login
A214055
Least m>0 such that n!+2+m and n-m have a common divisor > 1.
1
1, 2, 3, 1, 5, 2, 1, 2, 9, 1, 11, 2, 1, 2, 15, 1, 17, 2, 1, 2, 21, 1, 3, 2, 1, 2, 27, 1, 29, 2, 1, 2, 3, 1, 35, 2, 1, 2, 39, 1, 41, 2, 1, 2, 45, 1, 5, 2, 1, 2, 51, 1, 3, 2, 1, 2, 57, 1, 59, 2, 1, 2, 3, 1, 65, 2, 1, 2, 69, 1, 71, 2, 1, 2, 5, 1, 77, 2, 1, 2
OFFSET
1,2
LINKS
EXAMPLE
6!+2+1=723, 6-1=5; 6!+2+2=724, 6-2=4; so a(6)=2.
MATHEMATICA
b[n_] := n! + 2; c[n_] := n; Table[m = 1; While[GCD[b[n] + m, c[n] - m] == 1, m++]; m, {n, 100}]
CROSSREFS
Sequence in context: A322966 A173239 A366154 * A066909 A095195 A372640
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jul 22 2012
STATUS
approved