OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..192
EXAMPLE
MATHEMATICA
f[p_, e_] := p^e * If[OddQ[e], (e + 1)*(p - 1)/(p^(e + 1) - 1), e/((p^(e + 1) - 1)/(p - 1) - p^(e/2))]; buhmean[1] = 1; buhmean[n_] := Times @@ f @@@ FactorInteger[n]; seq[kmax_] := Module[{buh, buhmax = 0, s = {}}, Do[buh = buhmean[k]; If[buh > buhmax, buhmax = buh; AppendTo[s, k]], {k, 1, kmax}]; s]; seq[20000]
PROG
(PARI) buhmean(n) = {my(f = factor(n), p, e); n * prod(i = 1, #f~, p = f[i, 1]; e = f[i, 2]; if(e%2, (e + 1)*(p - 1)/(p^(e + 1) - 1), e/((p^(e + 1) - 1)/(p - 1) - p^(e/2)))); }
lista(kmax) = {my(buh, buhmax=0); for(k = 1, kmax, buh = buhmean(k); if(buh > buhmax, buhmax = buh; print1(k, ", "))); }
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Mar 24 2023
STATUS
approved