Placement AptitudeHardWipro NLTH · Cognizant pattern
In how many ways can three different numbers be chosen from 1, 2, …, 30 so that they form an arithmetic progression (order of choosing does not matter)?
- A. 210
- B. 420
- C. 196
- D. 406
Correct answer: A. 210
Write the triple as a, a + d, a + 2d with d ≥ 1. For each d, a runs from 1 to 30 − 2d, giving 30 − 2d triples; d goes 1 to 14. Sum = 14 × 30 − 2(1 + … + 14) = 420 − 210 = 210. 420 counts each triple in both increasing and decreasing order.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- 12 identical pens are given to 3 students so that each student gets at least 2 and at most 6 pens. In how many ways can this be done?
- In a 4-option MCQ test, a student knows the answer to 60% of the questions and guesses at random on the rest. Given that a question was…
- In how many arrangements of the numbers 1, 2, 3, 4, 5, 6, 7 in a row does no number k appear immediately before k + 1? (For example, '3 4'…
- Seven tiles — two red, two blue, two green and one yellow, identical apart from colour — are laid in a row. In how many distinguishable…
- Six desks numbered 1 to 6 stand in a circle, and student i normally sits at desk i. After a break the six students sit down again, one per…
- In how many ways can 20 identical chocolates be shared among 4 children so that every child gets at least 1 and at most 8 chocolates?