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!)
A359950 a(n) is the greatest prime factor of n^n - n!. 1
2, 7, 29, 601, 29, 116929, 11887, 4778489, 82207, 296987, 2767, 464089, 36922117, 71722471217, 10219277051, 9406703479, 2040247819, 122450719, 1265072927, 18353142818474353, 21514105057, 46999724987, 29693667067, 5684341885088084044195811037649, 692132186353, 12114317049616531 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,1
LINKS
FORMULA
a(n) = A006530(A036679(n)) = A006530(n*A126130(n-1)).
EXAMPLE
a(5) = greatest prime factor of 5^5 - 5! = greatest prime factor of 3125 - 120 = greatest prime factor of 3005 = 3005/5 = 601.
MATHEMATICA
Table[Max[First/@FactorInteger[n^n-n!]], {n, 2, 27}] (* Stefano Spezia, Jan 22 2023 *)
PROG
(PARI) a(n) = vecmax(factor(n^n - n!)[, 1]); \\ Michel Marcus, Jan 22 2023
CROSSREFS
Sequence in context: A003437 A192410 A270518 * A094475 A093034 A125174
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Michel Marcus, Jan 22 2023
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 July 17 11:42 EDT 2024. Contains 374377 sequences. (Running on oeis4.)