OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..429
MAPLE
a:= n-> max(1, numtheory[factorset](2^n-n)):
seq(a(n), n=1..40); # Alois P. Heinz, Jan 11 2023
MATHEMATICA
a[n_] := FactorInteger[2^n - n][[-1, 1]]; Array[a, 40] (* Amiram Eldar, Mar 30 2023 *)
PROG
(PARI) a(n) = if (n==1, 1, vecmax(factor(2^n-n)[, 1])); \\ Michel Marcus, Jan 11 2023
(Python)
from sympy import primefactors
def A359684(n): return 1 if n==1 else max(primefactors((1<<n)-n)) # Chai Wah Wu, Jan 11 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Philippe Deléham, Jan 11 2023
STATUS
approved