Placement AptitudeVery hardProduct company OA · CAT level
Eight books standing in positions 1 to 8 on a shelf are taken down and put back so that every book ends up either in its original position or in a position next to it. In how many ways can they be put back (including the original order)?
- A. 21
- B. 34
- C. 55
- D. 64
Correct answer: B. 34
Look at book 1: either it stays (then the remaining 7 books form the same problem) or it swaps with book 2 (the only way book 2 can then be placed is position 1, so the two simply swap), leaving 6 books. So aₙ = aₙ₋₁ + aₙ₋₂ with a₁ = 1, a₂ = 2: 1, 2, 3, 5, 8, 13, 21, 34. a₈ = 34. 21 is a₇; 64 = 2⁶ treats each neighbouring pair as an independent swap, but overlapping swaps conflict.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- How many 5-digit numbers divisible by 3 can be formed from the digits 0, 1, 2, 3, 4, 5 if no digit is repeated?
- In how many arrangements of the letters of BALLOON are neither the two L's together nor the two O's together?
- Three fair dice are rolled. What is the probability that the product of the three numbers is divisible by 4?
- How many solutions does x + y + z + w = 20 have in positive ODD integers x, y, z, w?
- 6 men and 4 women sit around a round table. In how many ways can they sit so that no two women are next to each other? (Rotations of a…
- How many ordered triples (a, b, c) of positive integers satisfy a × b × c = 360?