OFFSET
0,3
COMMENTS
It seems "obvious" that n log n << a(n) < n log n; is this true? - Charles R Greathouse IV, Feb 06 2013
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
EXAMPLE
123 is a term as the arithmetic mean is (1+2+3)/3 = 2.
MATHEMATICA
Select[Range[0, 129], IntegerQ[Total[x=IntegerDigits[#]]/Length[x]] &] (* Jayanta Basu, May 17 2013 *)
Select[Range[0, 200], IntegerQ[Mean[IntegerDigits[#]]]&] (* Harvey P. Dale, Dec 31 2022 *)
PROG
(Magma) [0] cat [n: n in [1..130] | IsZero(&+Intseq(n) mod #Intseq(n))]; // Bruno Berselli, Jun 30 2011
(Magma) [0] cat [n: n in [1..130] | IsIntegral(&+Intseq(n)/#Intseq(n))]; // Bruno Berselli, Feb 09 2016
(PARI) is(n)=my(v=digits(n)); sum(i=1, #v, v[i])%#v==0 \\ Charles R Greathouse IV, Feb 06 2013
(Haskell)
a061383 n = a061383_list !! (n-1)
a061383_list = filter (\x -> mod (a007953 x) (a055642 x) == 0) [0..]
-- Reinhard Zumkeller, Jun 18 2013
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Amarnath Murthy, May 03 2001
STATUS
approved