A260222 a(n)=gcd(n,F(n-1)), where F(n) is the n-th Fibonacci number.
1, 1, 1, 2, 1, 1, 1, 1, 3, 2, 11, 1, 1, 1, 1, 2, 1, 1, 19, 1, 3, 2, 1, 1, 1, 1, 1, 2, 29, 1, 31, 1, 3, 2, 1, 1, 1, 1, 1, 2, 41, 1, 1, 1, 3, 2, 1, 1, 7, 1, 1, 2, 1, 1, 1, 1, 3, 2, 59, 1, 61, 1, 1, 2, 1, 1, 1, 1, 3, 2, 71, 1, 1, 1, 1, 2, 1, 13, 79, 1, 3, 2, 1
Offset: 1
Keywords
Examples
a(2) = gcd(2,F(1)) = gcd(2,1) = 1. a(11) = gcd(11,F(10)) = gcd(11,55) = 11. a(19) = gcd(19,2584) = 19. a(29) = gcd(29,317811) = 29.
Links
- Dmitry Kamenetsky, Table of n, a(n) for n = 1..10000
- Z.-H. Sun and Z.-W. Sun, Fibonacci numbers and Fermat's last theorem, Acta Arithmetica 60(4) (1992), 371-388.
Programs
-
Magma
[Gcd(n,Fibonacci(n-1)): n in [1..90]]; // Vincenzo Librandi, Jul 20 2015
-
Mathematica
Table[GCD[n, Fibonacci[n-1]], {n, 1, 80}] (* Vincenzo Librandi, Jul 20 2015 *)
-
PARI
a(n)=gcd(n,fibonacci(n-1)) first(m)=vector(m,n,a(n+1)) /* Anders Hellström, Jul 19 2015 */
Comments