login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Numbers n such that the mean of the digits in n is an integer m and n is divisible by m.
0

%I #14 Aug 03 2014 14:01:30

%S 1,2,3,4,5,6,7,8,9,11,15,20,22,24,33,40,42,44,48,51,55,60,66,77,80,84,

%T 88,99,102,108,111,114,117,120,126,132,135,144,150,153,156,162,171,

%U 180,192,195,198,201,204,207,210,216,222,225,228,234,240,243,252

%N Numbers n such that the mean of the digits in n is an integer m and n is divisible by m.

%C Subsequence of A061383. Supersequence of A010785.

%e 132 is in the sequence because it is divisible by the arithmetic mean of its digits, namely 2.

%t okQ[n_] := Module[{m = Mean[IntegerDigits[n]]}, IntegerQ[m] && Divisible[n, m]]; Select[Range[500], okQ] (* _T. D. Noe_, May 09 2011 *)

%K nonn,base

%O 1,2

%A _Jaroslav Krizek_, May 07 2011

%E Corrected and extended by _T. D. Noe_, May 09 2011