OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
879 is a term as the arithmetic mean of the digits is (8+7+9)/3 = 8.
MAPLE
Q:= proc(n, t) option remember; local j, R;
if t > 9*n or t <= 0 then return [] fi;
R:= NULL;
for j from 0 to min(t, 9) do
R:= R, op(map(s -> 10*s+j, procname(n-1, t-j)))
od;
[R]
end proc;
for i from 0 to 9 do Q(1, i):= [i] od:
seq(op(sort(Q(d, 8*d))), d=1..4); # Robert Israel, Dec 07 2020
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Amarnath Murthy, May 03 2001
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), May 16 2001
STATUS
approved