login
Numbers whose sum of digits is 16.
32

%I #9 Sep 08 2022 08:46:06

%S 79,88,97,169,178,187,196,259,268,277,286,295,349,358,367,376,385,394,

%T 439,448,457,466,475,484,493,529,538,547,556,565,574,583,592,619,628,

%U 637,646,655,664,673,682,691,709,718,727,736,745,754,763,772,781,790

%N Numbers whose sum of digits is 16.

%C A007953(a(n)) = 16; number of repdigits = #{88,4444,22222222,1^16} = A242627(16) = 4. - _Reinhard Zumkeller_, Jul 17 2014

%H Vincenzo Librandi, <a href="/A235227/b235227.txt">Table of n, a(n) for n = 1..1000</a>

%t Select[Range[1000], Total[IntegerDigits[#]]==16 &]

%o (Magma) [n: n in [1..1000] | &+Intseq(n) eq 16];

%o (Haskell)

%o a235227 n = a235227_list !! (n-1)

%o a235227_list = filter ((== 16) . a007953) [0..]

%o -- _Reinhard Zumkeller_, Jul 17 2014

%Y Cf. A052217 - A052224, A143164, A166311, A166370, A166459.

%Y Cf. A011557 (1), A052216 (2), A052217 (3), A052218 (4), A052219 (5), A052220 (6), A052221 (7), A052222 (8), A052223 (9), A052224 (10), A166311 (11), A235151 (12), A143164 (13), A235225(14), A235226 (15), A166370 (17), A235228 (18), A166459 (19), A235229 (20).

%Y Cf. A242614, A242627.

%K base,nonn

%O 1,1

%A _Vincenzo Librandi_, Jan 05 2014