Placement AptitudeHardInfosys SP · Amazon aptitude
In how many ways can 15 be written as x + y + z, where x, y, z are integers from 1 to 7 and order matters?
- A. 91
- B. 28
- C. 7
- D. 21
Correct answer: B. 28
Without the upper limit there are C(14, 2) = 91 solutions. If one variable is ≥ 8, write it as 7 + x′ (x′ ≥ 1): x′ + y + z = 8 has C(7, 2) = 21 solutions, and two variables cannot both exceed 7. So 91 − 3 × 21 = 28. Subtracting 3 × C(8, 2) instead gives 7.
Practise more Advanced Quantitative Ability (Placement) questionsAdvanced Quantitative Ability (Placement): notes and key points
More Advanced Quantitative Ability (Placement) questions
- How many integers x from −10 to 10 satisfy (x + 3)(x − 4)/(x − 6) ≥ 0?
- What is the minimum value of (x² + 5)/√(x² + 4) over all real x?
- Let N = 100!. What is the value of 1/log₂ N + 1/log₃ N + 1/log₄ N + … + 1/log₁₀₀ N?
- The roots of x² − px + q = 0 are in the ratio 2 : 3. Which relation must hold?
- x, y and z are positive real numbers with x + 2y + 3z = 18. What is the largest possible value of xyz?
- A tells B: "I am twice as old as you were when I was as old as you are now. When you are as old as I am now, the sum of our ages will be…