OFFSET
1,2
COMMENTS
EXAMPLE
For n = 4; a(4) = 6 because 6 is the smallest number with sigma(6) / phi(6) = 12 / 2 = 6 >= 2.
MAPLE
b:= 0:
for n from 1 to 3*10^6 do
r:= floor(numtheory:-sigma(n)/numtheory:-phi(n));
if r > b then
for i from b+1 to r do A[i]:= n od:
b:= r;
fi
od:
seq(A[i], i=1..b); # Robert Israel, Aug 21 2017
MATHEMATICA
With[{s = KeySort@ PositionIndex@ Array[Floor[DivisorSigma[1, #]/EulerPhi@ #] &, 10^6]}, Function[t, Reverse@ FoldList[Min, #] &@ Reverse@ TakeWhile[#, # > 0 &] &@ ReplacePart[t, Map[# -> Lookup[s, #][[1]] &, Keys@ s]]]@ ConstantArray[0, Max@ Keys@ s]] (* Michael De Vlieger, Aug 19 2017 *) (* or *)
r = 1; Reap[ Do[z = DivisorSigma[1, n]/EulerPhi@ n; While[z >= r, r++; Sow@ n], {n, 10^6}]][[2, 1]] (* Giovanni Resta, Aug 21 2017 *)
PROG
(Magma) a:=1; S:=[a]; for n in [2..24] do k:=0; flag:= true; while flag do k+:=1; if &+[d: d in Divisors(k)] / EulerPhi(k) ge n then Append(~S, k); a:=k; flag:=false; end if; end while; end for; S;
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Aug 19 2017
EXTENSIONS
a(25)-a(35) from Giovanni Resta, Aug 21 2017
STATUS
approved