Question
Question: If \({{n}_{1}}\ and\ {{n}_{2}}\) are five – digit numbers, find the total number of ways of forming ...
If n1 and n2 are five – digit numbers, find the total number of ways of forming n1 and n2. So that these numbers can be added without carrying at any stage.
Solution
Hint: We will first start by seeing a fact that if two digits on adding is greater than 9 then there will be no carry on in the number. Then we will use this fact to find the cases for each of the digits and then using multiplication principle will multiply each case to find the total cases.
Complete step-by-step answer:
Now, we will first let the number n1=x1x2x3x4x5 where xi for i = 1 to 5 is digit of the number n1. We have the number n2 as n2=y1y2y3y4y5 where yi for i = 1 to 5 is digit of the number n2.
Now, we have been given that by adding n1 and n2 there should be no carry on. So, the sum of each digit at each place must be less than or equal to 9 this means,
n1=x1x2x3x4x5
n2=y1y2y3y4y5
⇒x5+y5≤9
Now, if we take x5=0 then y5≤9. So, there are 10 possible y5 for x5=0.
Similarly, for x5=1 we have y5≤8. Therefore, there are 9 possible y5 for x5=1.
Similarly, we can see that possible number of values of y5 for x5=2,3..........9 is 8,7............1 respectively.
Therefore, the total possible cases for x5+y5≤9 is 1+2+3+.........+10.
Now, we know that the sum of the first n natural number is 2n(n+1).
⇒ Total cases for x5+y5≤9=210+(10+1)
=55
Now, we have the same number of cases for x4+y4≤9,x3+y3≤9,x2+y2≤9.
But for x1+y1≤9 we have to notice that x1=y1=0 because then the number of questions will be less than 5. So, we have for x1=1,y1≤8. So, there are 8 cases and similarly for x1=2,3.......9 the cases are 7,6..........1.
So, the total cases for x1+y1≤9 is 8+7+6+5+......+1.
So, we have total cases for x1+y1≤9 as 28(9)=36.
Now, we have to find the total ways in which n1 and n2 can be formed. So, multiplying the cases for each x, y we have,