The number of positive integers not exceeding 100 that are either odd or the…

2020

The number of positive integers not exceeding 100 that are either odd or the square of an integer is _______

  1. A.

    63

  2. B.

    59

  3. C.

    55

  4. D.

    50

Attempted by 91 students.

Show answer & explanation

Correct answer: C

Solution: Use inclusion–exclusion to count integers ≤ 100 that are odd or perfect squares.

  • Count odd numbers ≤ 100: 50 (all odd integers from 1 to 99).

  • Count perfect squares ≤ 100: 10 (1, 4, 9, 16, 25, 36, 49, 64, 81, 100).

  • Count numbers that are both odd and perfect squares: 5 (1, 9, 25, 49, 81).

  • Apply inclusion–exclusion: 50 + 10 − 5 = 55.

  • Answer: 55.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Tpsc Assistant Technical Officer