|
|
A214180
|
|
Least m>0 such that 2^n-m and 5^n-m are relatively prime.
|
|
3
|
|
|
1, 2, 1, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 3, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 1, 3, 3, 2, 1, 2, 3, 3, 1, 2, 1, 2, 3, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 3, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 1, 3, 3, 2, 1, 2, 3
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
a(616) = 5.
|
|
LINKS
|
|
|
EXAMPLE
|
gcd(16-1,625-1) = 3, gcd(16-2,625-2) = 7, gcd(16-3,625-3) = 1, so a(4) = 3.
|
|
MATHEMATICA
|
Table[m = 1; While[GCD[2^n - m, 5^n - m] != 1, m++]; m, {n, 1, 140}]
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|