OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
Keep running totals of sum, rs and number of divisors, rd, for all numbers to n-1. Divide rs by rd. If mean at n <= running mean at n-1, then number is "light, " else "heavy."
EXAMPLE
a(1)=360. At 360 rs/rd of all previous n is 105811/2162=48.94+. At 360, s/d is 1170/24=48.75. 48.75<=48.94 so 360 is "Light."
MATHEMATICA
t = {1, 1}; seq = {}; Do[s = DivisorSigma[#, n] & /@ {0, 1}; If[s[[2]]/s[[1]] < t[[2]]/t[[1]], AppendTo[seq, n]]; t += s, {n, 2, 2400}]; seq (* Amiram Eldar, Sep 06 2019 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
EXTENSIONS
a(22) corrected by Amiram Eldar, Sep 06 2019
STATUS
approved