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-2 of 2 results.

A093074 Greatest prime factor of n and its direct neighbors.

Original entry on oeis.org

2, 3, 3, 5, 5, 7, 7, 7, 5, 11, 11, 13, 13, 13, 7, 17, 17, 19, 19, 19, 11, 23, 23, 23, 13, 13, 13, 29, 29, 31, 31, 31, 17, 17, 17, 37, 37, 37, 19, 41, 41, 43, 43, 43, 23, 47, 47, 47, 7, 17, 17, 53, 53, 53, 11, 19, 29, 59, 59, 61, 61, 61, 31, 13, 13, 67, 67, 67, 23, 71, 71, 73
Offset: 1

Views

Author

Reinhard Zumkeller, Mar 18 2004

Keywords

Comments

a(n) = A006530(n + A093075(n));
a(n) = max{A006530(n-1), A006530(n), A006530(n+1)}, n>1;
a(n) = A006530(A007531(n+1)), n>1;
for all primes p>2: a(p)=a(p-1)=p and if p is not the lesser member of a twin prime pair, then also a(p+1)=p;
(n,n+2) is a twin prime pair iff a(n-1)=a(n)=n and a(n+1)=a(n+2)=a(n+3)=n+2.

Crossrefs

Programs

  • Haskell
    a093074 1 = 2
    a093074 n = maximum $ map a006530 [n-1..n+1]
    -- Reinhard Zumkeller, Jul 04 2012
    
  • PARI
    a(n)=my(p=precprime(n+1));if(p>n-2,p,vecmax(apply(n->vecmax(factor(n)[,1]),[n-1,n,n+1]))) \\ Charles R Greathouse IV, Feb 19 2013

Formula

a(n) > 47 if n > 212381. - Charles R Greathouse IV, Feb 19 2013

A321069 Greatest prime factor of n^3+2.

Original entry on oeis.org

3, 5, 29, 11, 127, 109, 23, 257, 43, 167, 43, 173, 733, 1373, 307, 683, 983, 2917, 2287, 4001, 157, 71, 283, 223, 5209, 47, 127, 3659, 24391, 587, 9931, 113, 433, 6551, 809, 569, 307, 27437, 433, 10667, 439, 239, 1559, 223, 91127, 16223, 4153, 457, 39217, 62501
Offset: 1

Views

Author

Keywords

Crossrefs

Greatest prime factors of polynomials: A006530 (n), A076565 (2n+1), A076566 (3n+3), A076567 (4n+6), A164314 (n^2-2), A076605 (n^2-1), A014442 (n^2+1), A069902 (n^2+n), A074399 (n^2+n), A199423 (2n^2+n), A089619 (2n^2+2n+1), A037464 (4n^2-1), A253254 (9n^2-7n), A093074 (n^3-n), A081257 (n^3-1), A081256 (n^3+1), A321069(n^3+2), A281793 (n^3+n^2+n+1), A281793 (n^4-1), A096172 (n^4+1), A190136 (n^4 + 6n^3 + 11n^2 + 6n), A140538 (2n^4+1), A240548 (n^5+1), A281794 (n^5+n^3+n^2+1), A240549 (n^6+1), A240550 (n^7+1), A240551 (n^8+1), A240552 (n^9+1), A240553 (n^10+1).

Programs

  • Magma
    [Maximum(PrimeDivisors(n^3 + 2)): n in [1..60]]; // Vincenzo Librandi, Oct 27 2018
    
  • Mathematica
    Table[FactorInteger[n^3 + 2] [[-1, 1]], {n, 80}] (* Vincenzo Librandi, Oct 27 2018 *)
  • PARI
    a(n) = vecmax(factor(n^3+2)[,1]); \\ Michel Marcus, Oct 27 2018
Showing 1-2 of 2 results.