Problem 1. How many four-digit numbers have a sum of digits equal to 3?
Solution. The baryte numbers are written with the digits: $0,1,2$ and 3 . These are the numbers: 3000, 2100, 2010, 2001, 1110, 1101, 1011, 1200, 1020, 1002.