Placement AptitudeHardTCS NQT · Infosys
For how many integers n from 1 to 100 is n² + 1 divisible by 5?
- A. 20
- B. 40
- C. 50
- D. 60
Correct answer: B. 40
We need n² ≡ 4 (mod 5), which happens exactly when n ≡ 2 or 3 (mod 5). Each residue class has 20 members in 1–100, so 40 values.
Practise more Advanced Quantitative Ability (Placement) questionsAdvanced Quantitative Ability (Placement): notes and key points
More Advanced Quantitative Ability (Placement) questions
- What is the remainder when 2¹ + 2² + 2³ + … + 2¹⁰⁰ is divided by 7?
- How many three-digit numbers are divisible by 6 but not by 4?
- How many times is the digit 7 written when all the integers from 1 to 1000 are written out?
- What is the sum of all two-digit numbers that leave remainder 2 when divided by 7?
- A positive integer has exactly 10 digits when written in base 2. How many digits does it have in base 8?
- Vessel A contains milk and water in the ratio 8 : 5 and vessel B in the ratio 5 : 2. In what ratio must the contents of A and B be mixed…