Quote:
Originally Posted by jimmygoogle now i am totally confused.
your formula works good to find out the sum of 2/3 digit numbers formed using the given set.
while calculating sum of all 3 digit numbers using {2,4,6,8,0}
we do this way:
number of 3 digit numbers formed with the repetition of digits allowed: 4*5*5 = 100
now average of given numbers * 100 = 400
0 carry 40
0 carry 44
4 carry 4
for hundred's digit we have to calculate avg of {2,4,6,8} => 5 * 10
so we get: 54 (50+4) Ans: 54400 (am i right here?) now the final ans: 494550 - 54400 = 440150  |
this method works best, when there is no repetition of digits.
But let me try for this scenario.
Sum of 3 digit number numbers formed using "2/4/6/8/0"
Step1. number of 3 digit numbers = 5^3 = 125 ( including first digit as 0)
Step2. average of the given digits * 125 = 500.
Step3.
Unit digit = 0, 50 carry forward
Tens digit = 0, 55 carry forward
100s digit = 5, 55 carry forward
Ans1 = 55500.
But we have included '3 digit' numbers starting with 0 also.
Now we need to subtract all 2 digit numbers possible from {2,4,6,8}
Step1. number of 2 digit numbers = 4^2 = 16
Step2. average of the given digits * 16 = 80.
Step3.
Unit digit = 0, 8 carry forward
Tens digit = 8, 8 carry forward
100s digit = 8, 8 carry forward
Ans2 = 880.
But sadly we have not yet excluded all two digit numbers whoes first digit is zero, as well as all two digit numbers whoes second digit is zero.
Sum of all 'Two digit' numbers whoes first digit is zero = 2+4+6+8 = 20.
Sum of all two digit numbers whoes second digit is zero = 20+40+60+80 = 200.
Ans3 = 220.
Ans = Ans1-Ans2-Ans3 = 54400
Did you get it Jimmy?
But CLs method rocks.