Wardrobe code

Lucia has a lock on her wardrobe that opens with a 4-digit code (such as 0000, 0089, or 9123).
Lucia forgot her code. But she knows that the sum of all four digits of her code is 4. How many such codes are there?

Correct answer:

n =  34

Step-by-step explanation:

s=4 s=4=4+0=3+1=2+2=1+1+1+1=1+1+2  x1=0004 x2=0013 x3=0022 x4=0031 x5=0040 x6=0103 x7=0112 x8=0121 x9=0130 x10=0202 x11=0211 x12=0220 x13=0301 x14=0310 x15=0400 x16=1003 x17=1012 x18=1021 x19=1030 x20=1102 x21=1111 x22=1120 x23=1201 x24=1210 x25=1300 x26=2002 x27=2011 x28=2020 x29=2101 x30=2110 x31=2200 x32=3001 x33=3010 x34=3100 x35=4000  n=34



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







Tips for related online calculators
Our percentage calculator will help you quickly and easily solve a variety of common percentage-related problems.
See also our permutations calculator.
See also our variations calculator.
Would you like to compute the count of combinations?

Related math problems and questions: