OFFSET
1,2
COMMENTS
EXAMPLE
9 is a term because the average digit in 123456789 is (1+2+3+4+5+6+7+8+9)/9 = 45/9 = 5 (an integer).
122 is a term because 12345789101112..119120121122 has digit sum 1032 and digit count 258, and 1032/258 = 4 (an integer).
MATHEMATICA
Flatten@ Position[ Divide @@@ Transpose[ Accumulate /@ {Total /@ #, Length /@ #} &@ IntegerDigits@ Range@ 5000], _Integer] (* Giovanni Resta, Aug 12 2018 *)
CROSSREFS
KEYWORD
nonn,base,fini,full
AUTHOR
Jon E. Schoenfield, Aug 11 2018
STATUS
approved