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.

A242017 Smallest prime factor of composites in the sequence A000051(n) = 2^n+1.

Original entry on oeis.org

3, 3, 5, 3, 3, 5, 3, 17, 3, 5, 3, 3, 5, 3, 17, 3, 5, 3, 97, 3, 5, 3, 17, 3, 5, 3, 641, 3, 5, 3, 17, 3, 5, 3, 257, 3, 5, 3, 17, 3, 5, 3, 193, 3, 5, 3, 17, 3, 5, 3, 257, 3, 5, 3, 17, 3, 5, 3, 274177, 3, 5, 3
Offset: 1

Views

Author

Felix Fröhlich, Aug 11 2014

Keywords

Crossrefs

Programs

  • Mathematica
    FactorInteger[#][[1,1]]&/@Select[(2^Range[70]+1),CompositeQ] (* Harvey P. Dale, Feb 17 2017 *)
  • PARI
    for(n=1, 1e2, if(!ispseudoprime(2^n+1), p=factor(2^n+1)[1, 1]; print1(p, ", ")))