A270390 Greatest common divisor of 2^n-1 and 5^n-1.
1, 3, 1, 3, 1, 63, 1, 3, 1, 33, 1, 819, 1, 3, 31, 51, 1, 3591, 1, 1353, 1, 69, 1, 819, 1, 3, 1, 87, 1, 21483, 1, 51, 1, 3, 71, 1727271, 1, 3, 79, 1353, 1, 2408301, 1, 6141, 31, 141, 1, 13923, 1, 8283, 1, 159, 1, 10773, 1, 87, 1, 177, 1, 698476779, 1, 3, 1, 32691, 1
Offset: 1
Keywords
Examples
For n=3, 2^3-1 = 7 and 5^3-1 = 124, thus a(3) = gcd(7,124) = 1.
Links
- Antti Karttunen, Table of n, a(n) for n = 1..10000
- N. Ailon and Z. Rudnick, Torsion points on curves and common divisors of a^k-1 and b^k-1, arXiv:math/0202102 [math.NT], 2002; Acta Arith. 113 (2004), no. 1, 31-38.
Programs
-
Maple
seq(igcd(2^n-1, 5^n-1), n=1..100);
-
Mathematica
Table[GCD[2^n - 1, 5^n - 1], {n, 100}]
-
PARI
vector(100,n,gcd(2^n-1,5^n-1))
-
Sage
[gcd(2^n-1,5^n-1) for n in [1..100]]
Comments