Infosys
Company
Numerical Ability
Arithmetic
Q. Find the sum of all 4 digit numbers formed using digits 1,2,5,6.
Asked today in online test.
Read Solution (Total 9)
-
- (n-1)! * (111...n) *(sum of the digits)
=(4-1)!*1111*(1+2+5+6)
=93324 - 10 years agoHelpfull: Yes(38) No(1)
- total no. formed = 4!=4*3*2*1=24
starting with 1 = 3*2= 6 no.s
starting with 2 = 3*2= 6 n0.s
starting with 5 = 3*2= 6 no.s
starting with 6 = 3*2= 6 no.s
sum of digits starting with 1,2,5,6 = 6*1+6*2+6*5+6*6=6*(1+2+5+6)=84
this sum will be same for hundred, tens & unit places
sum of all 4 digit numbers formed using digits 1,2,5,6
= 1000*84+100*84+10*84+84
=84*(1000+100+10+1)
=84*1111
=93324
- 11 years agoHelpfull: Yes(23) No(0)
- 1111*(1+2+5+6)3!
- 11 years agoHelpfull: Yes(6) No(4)
- i always learn something new while i get a failure but prob is i don't wanna learn any more ..hehhehehheh.. :)
- 11 years agoHelpfull: Yes(3) No(4)
- Total nos using these digits:4!=24,repetition not allowed
6 of these numbers begin with a 1, 6 begin with a 2, ..., and 6 begin with a 6
Consider all the numbers beginning with a 1. The remaining digits are {2,5,6}. However, they can appear in any order, so it can make sense to assume that each digit will appear in each placeholder an equal number of times. There are 6 numbers total, so each number will appear in a placeholder 6/3=2 times. The sum of these numbers is (1000)(6)+ 2(2+5+6)(100+10+1)
Likewise, we do the same with the other leading numbers 2,5,6 to get
(1000)(6)+ 2(2+5+6)(100+10+1)
(2000)(6)+ 2(1+5+6)(100+10+1)
(5000)(6)+ 2(1+2+6)(100+10+1)
(6000)(6)+ 2(1+5+2)(100+10+1)
total= 14000x6 + 2(42)(100+10+1)=84000+9324=93324
- 11 years agoHelpfull: Yes(3) No(0)
- Ans: It is a mathematical problem in which each letter represents a digit (for example, A = 5).
Our aim is to find the value of each letter.
No two letters represent the same digit (If A = 5, B cannot be 5).
The problem could be quite challenging but could be made very easy if solved with certain rules, tricks and presence of mind.
Follow these rules:
1. 0 * n = 0
2. 1 * n = n
3. 5 * odd number = (x)5 where x can be 0/1/3/4,
like 5 * 1 = 05 (x = 0)
5 * 3 = 15 (x = 1)
5 * 7 = 35 (x = 3)
5 * 9 = 45 (x = 4)
4. even number * 6 = (x)(even number) where x can be 1/2/4
like 2 * 6 = 12 (x = 1)
4 * 6 = 24 (x = 2)
8 * 6 = 35 (x = 4)
Let's understand the way how we will solve these questions with an example:
F A C
* H E I
-----------------
E E A G
C J F E
D I J D
------------------
E B F E F G
Presence of mind Question Paper General Knowledge Answering
Guide For Aptitude It to be Tracking Questions Guide to how
Step 1:
Determine the characters which can be 0. Although this may not be useful in all cases but keeping the track of it may be useful in many cases.
In our example the multiplicand is FAC and multiplier is HEI
Rule 1: Any leading character will not be 0, so neither of F/H/E/C/D is 0
Rule 2: If any digit among E/I in multiplier is 0 then the corresponding row in multiplication will be all the same digit,
but in our case no row is either EEE/III so neither of E/I is 0
Rule 3: In multiplicand FAC, if C is 0 then the first,second and third row of multiplication will contain the trailing character as C,
but we don't have trailing character in all row as C, so C is no 0
Result of Rule 1, Rule 2 and Rule 3: Characters which can be 0 are - A/B/G/J
Note: Although the rule says that A can be 0 but if you come across situation where you need to consider one among these suspected character as 0,
then consider A(middle character of multiplicand) in the last. Or you can assume it to be non zero for simplicity.
Concluding the step 1: None of the character among multiplier, multiplicand and all leading character in each row will be 0.
So Characters which can be 0 are - B/G/J
Step 2:
Find whether we have any of the following property(in general for all problems):
I * C = I
I * C = C
E * C = E
E * C = C
H * C = H
H * C = C
Remember, they will give problem which has one of these property and this will be starting point of our approach to solve it.
We see that we have the property E * C = E
Now from the rule 3 and 4 we notice that either E is 5 and C is an odd number or E is an even number and C is 6
We will now proceed with the first case when E is 5 and C is an odd number and will consider the second case if we are not able to solve by this assumption.
Also we will have to think differently from here for each problem but practising more and more problem will make it easier.
F A C
* H 5 I
-------------
5 5 A G
C J F 5
D I J D
---------------
5 B F 5 F G
Now look carefully, the last column from left says: D + carry = 5. Now think what could be the maximum carry from the last sum C + I = B ?
Remember the sum of two number will never give a carry more than 1 and sum of three numbers will never give a carry more than 2 except in one case:
Presence of mind Question Paper General Knowledge Answering
Guide For Aptitude It to be Tracking Questions Guide to how
U V W
* X Y Z
-------------
9 9 9 9
9 9 9 9
9 9 9 9
-------------
1 1 0 9 8 8 9
Here the 2nd column from left gives a carry equals to 2 when both numbers of the column are same and are equal to 9(not in our case)
So we see that in D + carry = 5, the carry must be 1 and hence D has to be 4
F A C
* H 5 I
-------------
5 5 A G
C J F 5
4 I J 4
-------------
5 B F 5 F G
Also C can be either 3/7/9 and can't be 1 because if C was 1 then trailing character of each row would have been I,5 and H respectively.
Try to minimize the number of values that a character can have. Let's do it for C.
Focus on all C in our problem and see how they are generated. Look at second row of multiplication where:
F A C
* 5
--------
C J F 5
This multiplication give a number which will always be smaller than 5000 so C can be 3 only.
F A 3
* H 5 I
-------------
5 5 A G
3 J F 5
4 I J 4
-------------
5 B F 5 F G
Focus on the second row of multiplication again:
Presence of mind Question Paper General Knowledge Answering
Guide For Aptitude It to be Tracking Questions Guide to how
F A 3
* 5
--------
3 J F 5
We can see that F can be either 6 or 7.
Let's proceed with F = 6 and will consider F = 7 if we are stuck and are not able to proceed with F = 6
6 A 3
* H 5 I
-------------
5 5 A G
3 J 6 5
4 I J 4
-------------
5 B 6 5 6 G
Now see the second column from right A+5=6, which implies that A must be 1 and since we haven't gotten any character yet with value 1,
accept the value and proceed further.
6 1 3
* H 5 I
-------------
5 5 1 G
3 J 6 5
4 I J 4
-------------
5 B 6 5 6 G
6 1 3
* 5
--------
3 J 6 5
=> J = 0
6 1 3
* H 5 I
-------------
5 5 1 G
3 0 6 5
4 I 0 4
-------------
5 B 6 5 6 G
6 1 3
* H
--------
4 I 0 4
=> H must be 8 so that when mult - 10 years agoHelpfull: Yes(1) No(6)
- buy adding every digit we get seperately
3!(6+5+2+1)=84
84(1000)+84(100)+84(10)+84(1)=93324
- 10 years agoHelpfull: Yes(1) No(0)
- total number=4!=24
sum=1+2+5+6=14
sum of all rows 84
so
ans=(84)(84)(84)(84)=39324 - 11 years agoHelpfull: Yes(0) No(3)
- @tanusree ,gajab ..gajab tu mera Answer check kar ..sahi hai..but 5 like to 3 dislike ..tune kiya to 21 like ..le ek mere taraf se dislike..heheh lolz
- 10 years agoHelpfull: Yes(0) No(0)
Infosys Other Question