OFFSET
2,1
COMMENTS
The record values here (as well as those for A081256) appear to match the terms of A002383 for n > 1. - Bill McEachen, Jun 19 2023
LINKS
Jon E. Schoenfield, Table of n, a(n) for n = 2..10000 (first 999 terms from R. J. Mathar).
FORMULA
EXAMPLE
a(7)=19 because 7^3 - 1 = 342 = 2*3*3*19.
MAPLE
MATHEMATICA
FactorInteger[#][[-1, 1]]&/@(Range[2, 60]^3-1) (* Harvey P. Dale, Oct 09 2017 *)
PROG
(PARI) a(n)=my(f=factor(n^3-1)); f[#f~, 1] \\ Charles R Greathouse IV, Mar 08 2017
(Python)
from sympy import primefactors
def A081257(n): return max(primefactors(n-1)+primefactors(n*(n+1)+1)) # Chai Wah Wu, Oct 15 2022
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jan Fricke, Mar 14 2003
EXTENSIONS
More terms from Hugo Pfoertner, Jun 21 2004
STATUS
approved