A144162 Numbers with at least two digits in which all digits except the rightmost are 0 or 5 and the rightmost is neither 0 nor 5.
51, 52, 53, 54, 56, 57, 58, 59, 501, 502, 503, 504, 506, 507, 508, 509, 551, 552, 553, 554, 556, 557, 558, 559, 5001, 5002, 5003, 5004, 5006, 5007, 5008, 5009, 5051, 5052, 5053, 5054, 5056, 5057, 5058, 5059, 5501, 5502, 5503, 5504, 5506, 5507, 5508, 5509, 5551
Offset: 1
Links
Programs
-
Mathematica
Flatten[Table[10#+r,{r,{1,2,3,4,6,7,8,9}}]&/@FromDigits/@(Join[{5},#]&/@ Flatten[ Table[Tuples[{0,5},f],{f,0,3}],1])] (* Harvey P. Dale, Oct 18 2020 *)
Comments