Quote:
Originally Posted by prateek7563
oops i got excited and forgot about sum as 18 and 27
see. first check for numbers having sum of digits = 9
0 + 9 = 9000 and 3330
3+6 = 3222 and 2223, 6111 and 1116
Now for 18:
0 + 18 = 6660
3+ 15 = 3555 & 5553
6+12 = 6444 and 4446
9 + 9 = 3339 and 9333
now for 27 =
8883, 3888, 7776, 6777, 9990,9666,6669.
hence equal to 20. check for a + b =9 or 18 or 27 where a or b is divisible by 3
|
Answer shoub be 21:
NB: Divisibility by 9:
Sum of the digits of the number must be divisible by 9.
Set 1:{1,1,1,6} - 2 ways eg: 1116, 6111
Set 2:{2,2,2,3} - 2 ways eg: 2223,3222
Set 3:{3,3,3,(0,9)} - 2+1 = 3 ways eg: 3339,9333,3330
Set 4:{4,4,4,6} - 2 ways eg: 4446,6444
Set 5:{5,5,5,3} - 2 ways eg: 5553,3555
Set 6:{6,6,6,(0,9)} - 2+1 = 3 ways eg: 6669,9666,6660
Set 7:{7,7,7,6} - 2 ways eg: 7776,6777
Set 8:{8,8,8,3} - 2 ways eg: 8883,3888
Set 9:{9,9,9,(0,9)} - 1+1 = 2 ways eg: 9999,9990
Set 10:{9,0,0,0} - 1 ways eg: 9000
So (2+2+3+2+2+3+2+2+2+1) = 21