OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
1236 is a term as the harmonic mean is 4/(1+1/2+1/3+1/6) = 2.
MATHEMATICA
Do[ h = IntegerDigits[n]; If[ Sort[h] [[1]] != 0 && IntegerQ[ Length[h] / Apply[ Plus, 1/h] ], Print[n]], {n, 1, 10^4} ] Note that the number of entries <= 10^n are 9, 22, 61, 198, 927, 4738, 24620, 130093,
hmdiQ[n_]:=DigitCount[n, 10, 0]==0&&IntegerQ[HarmonicMean[ IntegerDigits[ n]]]; Select[Range[1000], hmdiQ] (* Harvey P. Dale, Sep 22 2012 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Vladeta Jovovic, Jun 12 2001
EXTENSIONS
More terms from Robert G. Wilson v, Aug 08 2001
STATUS
approved