cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A060383 a(1) = a(2) = 1; for n >2, a(n) = smallest prime factor of n-th Fibonacci number.

Original entry on oeis.org

1, 1, 2, 3, 5, 2, 13, 3, 2, 5, 89, 2, 233, 13, 2, 3, 1597, 2, 37, 3, 2, 89, 28657, 2, 5, 233, 2, 3, 514229, 2, 557, 3, 2, 1597, 5, 2, 73, 37, 2, 3, 2789, 2, 433494437, 3, 2, 139, 2971215073, 2, 13, 5, 2, 3, 953, 2, 5, 3, 2, 59, 353, 2, 4513, 557, 2, 3, 5, 2, 269, 3, 2, 5
Offset: 1

Views

Author

Labos Elemer, Apr 03 2001

Keywords

Examples

			For n=82: F(82) = 2789*59369*370248451, so a(82)=2789.
		

Crossrefs

Programs

  • Magma
    [1,1] cat [Minimum(PrimeDivisors(Fibonacci(n))): n in [3..70]]; // Vincenzo Librandi, Dec 25 2016
  • Mathematica
    f[n_] := (FactorInteger@ Fibonacci@ n)[[1,1]]; Array[f, 70] (* Robert G. Wilson v, Jul 07 2007 *)
  • PARI
    a(n) = if ((f=fibonacci(n))==1, 1, factor(f)[1,1]); \\ Michel Marcus, Nov 15 2014
    

Formula

a(n) = A020639(A000045(n)). - Michel Marcus, Nov 15 2014

Extensions

Better definition from Omar E. Pol, Apr 25 2008