Digit sum

How many are three-digit numbers that have a digit sum of 6?

Correct answer:

n =  21

Step-by-step explanation:

n=21

The equations have the following integer solutions:
6 = a+b+c
a>0
b>=0
c>=0


Number of solutions found: 21
a1=1, b1=0, c1=5
a2=1, b2=1, c2=4
a3=1, b3=2, c3=3
a4=1, b4=3, c4=2
a5=1, b5=4, c5=1
a6=1, b6=5, c6=0
a7=2, b7=0, c7=4
a8=2, b8=1, c8=3
a9=2, b9=2, c9=2
a10=2, b10=3, c10=1
a11=2, b11=4, c11=0
a12=3, b12=0, c12=3
a13=3, b13=1, c13=2
a14=3, b14=2, c14=1
a15=3, b15=3, c15=0
a16=4, b16=0, c16=2
a17=4, b17=1, c17=1
a18=4, b18=2, c18=0
a19=5, b19=0, c19=1
a20=5, b20=1, c20=0
a21=6, b21=0, c21=0

Calculated by our Diofant problems and integer equations.



Did you find an error or inaccuracy? Feel free to write us. Thank you!



avatar







Tips to related online calculators
Do you solve Diofant problems and looking for a calculator of Diofant integer equations?
See also our permutations calculator.
Would you like to compute count of combinations?

Related math problems and questions: