OFFSET
1,1
EXAMPLE
a(1) = 15 since sigma(8) is 15 and that is the record for 1-digit numbers.
MATHEMATICA
a[n_] := Module[{mx=1}, For[k=10^(n-1), k<=10^n-1, k++, If[(t=DivisorSigma[1, k]) > mx, mx=t; kx=k]]; mx]; Array[a, 6] (* Stefano Spezia, Nov 07 2024 *)
PROG
(PARI) maxsigdig(m, n)= { local(d, a, k, b); for(d=m, n, a=0; for(k=10^d, 10^(d+1)-1, b=sigma(k); if(b>a, a=b)); print1(a, ", "))}
maxsigdig(0, 7)
CROSSREFS
KEYWORD
base,nonn,changed
AUTHOR
Jason Earls, Dec 25 2001
EXTENSIONS
More terms from Vladeta Jovovic, Dec 26 2001
STATUS
approved