OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
498 is a term as the arithmetic mean of the digits is (4+9+8)/3 = 7.
MAPLE
filter:= proc(n) local L;
L:= convert(n, base, 10);
convert(L, `+`)=nops(L)*7
end proc:
select(filter, [$1..10000]); # Robert Israel, Dec 07 2020
MATHEMATICA
Select[Range[5000], Total[IntegerDigits[#]]==7IntegerLength[#]&] (* Harvey P. Dale, Oct 22 2022 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Amarnath Murthy, May 03 2001
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), May 16 2001
Offset changed by Robert Israel, Dec 07 2020
STATUS
approved