login
a(n) = numbers that contain exactly four digits: three identical digits and another different digit.
1

%I #8 Aug 27 2019 09:27:51

%S 1000,1011,1101,1110,1112,1113,1114,1115,1116,1117,1118,1119,1121,

%T 1131,1141,1151,1161,1171,1181,1191,1211,1222,1311,1333,1411,1444,

%U 1511,1555,1611,1666,1711,1777,1811,1888,1911,1999,2000,2022,2111,2122,2202,2212,2220,2221,2223,2224,2225,2226,2227,2228,2229,2232,2242,2252,2262,2272,2282,2292,2322,2333,2422,2444

%N a(n) = numbers that contain exactly four digits: three identical digits and another different digit.

%C The last term of the sequence is 9998.

%C There are 324 terms in the sequence. - _Harvey P. Dale_, Aug 27 2019

%H Harvey P. Dale, <a href="/A291346/b291346.txt">Table of n, a(n) for n = 1..324</a>

%t Select[Range[1000,9999],Sort[DigitCount[#]]=={0,0,0,0,0,0,0,0,1,3}&] (* _Harvey P. Dale_, Aug 27 2019 *)

%K nonn,base,fini

%O 1,1

%A _Enrique Navarrete_, Aug 22 2017