Question
How many steps will be required to get the final output
from the following input? Input: 117, 63, 11, 18, 93, 4, 6, 13, 17 Directions : A number arrangement machine,when given a particular input, rearranges it following a particular rule. The following is the illustration of the input and the steps of arrangement: Input: 18, 7, 45, 23, 21, 91, 12, 16, 19 Step I: 7, 18, 45, 23, 21, 91, 12, 16, 19 Step II: 7, 19, 45, 23, 21, 91, 12, 16, 18 Step III: 7, 19, 23, 45, 21, 91, 12, 16, 18 Step IV: 7, 19, 23, 21, 45, 91, 12, 16, 18 This is the final arrangement and step IV is the last step for the given in put.Solution
Clearly, in the given arrangement, the numbers of each type have been arranged in ascending order, ie prime numbers are arranged first in ascending order,then non-prime odd numbers, and finally even numbers.Also, when a number is arranged, it interchanges its position with the wrongly placed number. Input: 117, 63, 11, 18, 93, 4, 6, 13, 17 Step I: 11, 63, 117, 18, 93, 4, 6, 13, 17 Step II: 11, 13, 117, 18, 93, 4, 6, 63, 17 Step III: 11, 13, 17, 18, 93, 4, 6, 63, 117 Step IV: 11, 13, 17, 63, 93, 4, 6, 18, 117 Step V: 11, 13, 17, 63, 93, 117, 6, 18, 4 Step VI: 11, 13, 17, 63, 93, 117, 4, 18, 6 Step VII: 11, 13, 17, 63, 93, 117, 4, 6, 18
- Find the wrong number in the given number series.
10, 19, 3, 28, 5, 54 42, 50, 59, 123, 148, 360
Find the wrong number in the given number series.
1900, 1171, 669, 316, 100, - 25
Find the wrong number in the given number series.
1024, 256, 64, 32, 4, 1- Find the wrong number in the given number series.
3, 6, 12, 24, 60, 96 Find the wrong number in given number series.
4350, 4400, 4600, 4750, 5150, 5450
- Find the wrong number in the given number series.
10, 13, 17, 24, 31, 41 Find the wrong number in the given number series,
31, 55, 91, 145, 217, 307
- Find the wrong number in the given number series.
5, 11, 21, 41, 65, 95 16, 16, 32, 128, 1024, 16384Β