|
|
A214057
|
|
Least m>0 such that 2^n-1+m and n-m have a common divisor > 1.
|
|
3
|
|
|
1, 2, 1, 4, 1, 3, 1, 8, 1, 10, 1, 3, 1, 14, 1, 16, 1, 3, 1, 5, 1, 2, 1, 3, 1, 26, 1, 28, 1, 3, 1, 4, 1, 6, 1, 2, 1, 15, 1, 5, 1, 2, 1, 5, 1, 17, 1, 3, 1, 50, 1, 8, 1, 2, 1, 56, 1, 58, 1, 3, 1, 2, 1, 6, 1, 3, 1, 31, 1, 70, 1, 3, 1, 4, 1, 6, 1, 3, 1, 5, 1, 2, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
EXAMPLE
|
gcd(2^6-1-1,6-1) = gcd(62,5) = 1
gcd(2^6-1-2,6-2) = gcd(61,4) = 1
gcd(2^6-1-3,6-3) = gcd(60,3) = 3,
so that a(6) = 3.
|
|
MATHEMATICA
|
b[n_] := 2^n-1; c[n_] := n;
Table[m = 1; While[GCD[b[n] + m, c[n] - m] == 1, m++]; m, {n, 1, 100}]
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|