Placement AptitudeHardAmazon OA · CAT
In how many ways can 12 be written as an ordered sum of 1's and 2's (for example 2 + 1 + 1 + … counts differently from 1 + 2 + 1 + …)?
- A. 144
- B. 377
- C. 78
- D. 233
Correct answer: D. 233
If w(n) is the count, the first part is 1 or 2, so w(n) = w(n − 1) + w(n − 2) with w(1) = 1, w(2) = 2. This gives 3, 5, 8, …, w(12) = 233.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- In how many ways can 10 be written as an ordered sum of 3 positive integers, each at most 5 (for example 5 + 3 + 2 and 2 + 3 + 5 count as…
- A convex polygon has 3 times as many diagonals as sides. How many sides does it have?
- All arrangements of the letters of COMPUTER are listed in dictionary order. What is the rank (position) of the word COMPUTER?
- A 2-digit number (10 to 99) is chosen at random. What is the probability that it is divisible by the sum of its digits?
- Three fair dice are rolled. What is the probability that the product of the three numbers is exactly 12?
- A biased coin shows heads with probability 1/3. It is tossed until the first head. What is the probability that an even number of tosses…