The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A372229 a(n) is the largest prime factor of n^n - n. 3
2, 3, 7, 13, 311, 43, 337, 193, 333667, 13421, 266981089, 28393, 29914249171, 10678711, 1321, 184417, 7563707819165039903, 236377, 192696104561, 920421641, 12271836836138419, 39700406579747, 58769065453824529, 152587500001, 4315817869647001, 797161 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,1
LINKS
FORMULA
a(n) = A006530(A061190(n)).
MAPLE
pf := n -> NumberTheory:-PrimeFactors(n): a := n -> max(pf(n^n - n));
seq(a(n), n = 2..27); # Peter Luschny, Apr 27 2024
MATHEMATICA
Table[f = FactorInteger[n^n-n]; f[[Length[f]]][[1]], {n, 2, 25}] (* Vaclav Kotesovec, Apr 26 2024 *)
PROG
(Python)
from sympy import primefactors
def A372229(n): return max(max(primefactors(n), default=1), max(primefactors(n**(n-1)-1), default=1)) # Chai Wah Wu, Apr 27 2024
CROSSREFS
Sequence in context: A006695 A128157 A259488 * A073827 A081940 A082270
KEYWORD
nonn
AUTHOR
Tyler Busby, Apr 23 2024
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 18 05:02 EDT 2024. Contains 372618 sequences. (Running on oeis4.)