login
Numbers whose largest decimal digit is 4.
9

%I #21 May 05 2019 13:18:59

%S 4,14,24,34,40,41,42,43,44,104,114,124,134,140,141,142,143,144,204,

%T 214,224,234,240,241,242,243,244,304,314,324,334,340,341,342,343,344,

%U 400,401,402,403,404,410,411,412,413,414,420,421,422,423,424,430,431,432

%N Numbers whose largest decimal digit is 4.

%C Number of terms less than 10^n is 5^n-4^n. - _Chai Wah Wu_, Nov 06 2016

%H Colin Barker, <a href="/A277966/b277966.txt">Table of n, a(n) for n = 1..1000</a>

%t A277966Q = Max[IntegerDigits[#]] == 4 &; Select[Range[500], A277966Q] (* _JungHwan Min_, Nov 06 2016 *)

%t Select[Range[500],Max[IntegerDigits[#]]==4&] (* _Harvey P. Dale_, May 05 2019 *)

%o (PARI) L=List(); for(n=1, 10000, if(vecmax(digits(n))==4, listput(L, n))); Vec(L)

%o (GAP) Filtered([1..450],n->Maximum(ListOfDigits(n))=4); # _Muniru A Asiru_, Mar 01 2019

%Y Cf. A007088, A277964, A277965.

%K nonn,base

%O 1,1

%A _Colin Barker_, Nov 06 2016