OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(6)=12 because 6 has 4 divisors and the smallest integer > 6 which has more than 4 divisors is 12.
MAPLE
with(numtheory): a:=proc (n) local m: for m from n+1 while tau(m) <= tau(n) do end do: m end proc: seq(a(n), n=1..60); # Emeric Deutsch, Mar 21 2008
MATHEMATICA
a = {}; For[n = 1, n < 70, n++, i = n + 1; While[ ! DivisorSigma[0, i] > DivisorSigma[0, n], i++ ]; AppendTo[a, i]]; a (* Stefan Steinerberger, Mar 16 2008 *)
simd[n_]:=Module[{m=n+1, d=DivisorSigma[0, n]}, While[DivisorSigma[0, m]<=d, m++]; m]; Array[simd, 70] (* Harvey P. Dale, Oct 03 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Mar 02 2008
EXTENSIONS
More terms from Stefan Steinerberger, Mar 16 2008
STATUS
approved