|
|
A127987
|
|
Largest prime factor of n! + 2^n - 1.
|
|
9
|
|
|
2, 5, 13, 13, 151, 29, 5167, 541, 51913, 691, 39918847, 1520653, 9631, 2748457, 171793, 37698720637, 429056005099, 10201231, 4759011791767, 26573, 560275276313059, 30130171848761, 522781919969, 8912567718641664241, 480631246386037, 3215985920374841, 4561301027
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
a(6) = 29 since 29 is the largest prime factor of n! + 2^n - 1 = 6! + 2^6 - 1 = 783 = 3^3 * 29.
|
|
MATHEMATICA
|
Table[FactorInteger[n! + 2^n - 1][[-1, 1]], {n, 20}] (* Alonso del Arte, Oct 28 2015 *)
|
|
PROG
|
(Magma) largestpf := func<n | f[#f, 1] where f is Factorization(n)>; [largestpf(Factorial(n)+2^n-1): n in [1..24]]; // Klaus Brockhaus, Nov 20 2009
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|