首页 > 留学知识库

问题: 难题求解!!!

The set S consists of all four-digit decimal numbers that contain only the digits 2 and 4, Compute the sum of all the numvers in S

解答:

只有3和4的四位数有五种类型:2222、2444、2244、2224、4444。共计13个
它们是
2222
2224 2242 2422 4222
2244 2424 2442 4242 4224 4422
2444 4244 4424 4442
4444
它们的和是[(2000+4000)+200+400)+(20+40)+(2+4)]*8
=6666*8
=53328.