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.

Showing 1-1 of 1 results.

A209188 Smallest prime factor of n^2 + n - 1.

Original entry on oeis.org

5, 11, 19, 29, 41, 5, 71, 89, 109, 131, 5, 181, 11, 239, 271, 5, 11, 379, 419, 461, 5, 19, 599, 11, 701, 5, 811, 11, 929, 991, 5, 19, 29, 1259, 11, 5, 1481, 1559, 11, 1721, 5, 31, 1979, 2069, 2161, 5, 2351, 31, 2549
Offset: 2

Views

Author

N. J. A. Sloane, Mar 05 2012

Keywords

Crossrefs

Cf. A071182.

Programs

  • Magma
    [Min(PrimeFactors(n^2+n-1)):n in[2..70]];// Vincenzo Librandi, Sep 18 2016
    
  • Mathematica
    SPF[n_] := (FactorInteger[n])[[1]][[1]]; Flatten[Table[SPF[n^2 + (n - 1)], {n, 2, 50}]]
    Table[FactorInteger[n^2+n-1][[1,1]],{n,2,50}] (* Harvey P. Dale, Aug 20 2014 *)
  • PARI
    a(n) = vecmin(factor(n^2+n-1)[,1]); \\ Michel Marcus, Sep 18 2016
Showing 1-1 of 1 results.