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.

A199423 Greatest prime factor of n and 2*n+1.

Original entry on oeis.org

3, 5, 7, 3, 11, 13, 7, 17, 19, 7, 23, 5, 13, 29, 31, 11, 17, 37, 19, 41, 43, 11, 47, 7, 17, 53, 11, 19, 59, 61, 31, 13, 67, 23, 71, 73, 37, 19, 79, 5, 83, 17, 43, 89, 13, 31, 47, 97, 11, 101, 103, 13, 107, 109, 37, 113, 23, 29, 59, 11, 61, 31, 127, 43, 131, 19
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    Table[Max[Flatten[FactorInteger[{n,2 n+1}],1][[All,1]]],{n,70}] (* Harvey P. Dale, Mar 25 2020 *)
  • PARI
    gpf(n)=local(ps);if(n<2,n,ps=factor(n)[,1]~;ps[#ps])
    vector(80,n,gpf(n*(2*n+1)))

Formula

a(n) = A006530(A014105(n)).