Question:

Find the number of integers \(n\) such that \(1 \leq n \leq 100\) and \(n^2 + 3n + 2\) is divisible by 5.

Show Hint

For divisibility of polynomial expressions modulo \(m\), factorize if possible and check residues satisfying divisibility conditions.
Updated On: May 30, 2025
  • 20
  • 21
  • 19
  • 18
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Approach Solution - 1

We need to find how many integers \(n\) in the range \(1 \leq n \leq 100\) make the expression \(n^2 + 3n + 2\) divisible by 5.

To determine when a number is divisible by 5, we find when \(n^2 + 3n + 2 \equiv 0 \pmod{5}\). This simplifies our task to checking for what values of \(n\) modulo 5 this equation holds.

Let's examine the values of \(n \pmod{5}\):
  • If \(n \equiv 0 \pmod{5}\), then \(n^2 \equiv 0\), \(3n \equiv 0\), meaning \(n^2 + 3n + 2 \equiv 0 + 0 + 2 \equiv 2 \not\equiv 0\) modulo 5.
  • If \(n \equiv 1 \pmod{5}\), then \(n^2 \equiv 1\), \(3n \equiv 3\), meaning \(n^2 + 3n + 2 \equiv 1 + 3 + 2 \equiv 6 \equiv 1 \not\equiv 0\) modulo 5.
  • If \(n \equiv 2 \pmod{5}\), then \(n^2 \equiv 4\), \(3n \equiv 6 \equiv 1\), meaning \(n^2 + 3n + 2 \equiv 4 + 1 + 2 \equiv 7 \equiv 2 \not\equiv 0\) modulo 5.
  • If \(n \equiv 3 \pmod{5}\), then \(n^2 \equiv 9 \equiv 4\), \(3n \equiv 9 \equiv 4\), meaning \(n^2 + 3n + 2 \equiv 4 + 4 + 2 \equiv 10 \equiv 0\) modulo 5.
  • If \(n \equiv 4 \pmod{5}\), then \(n^2 \equiv 16 \equiv 1\), \(3n \equiv 12 \equiv 2\), meaning \(n^2 + 3n + 2 \equiv 1 + 2 + 2 \equiv 5 \equiv 0\) modulo 5.
Thus, \(n^2 + 3n + 2\) is divisible by 5 when \(n \equiv 3\) or \(n \equiv 4 \pmod{5}\).

Counting numbers from 1 to 100:
  • Numbers satisfying \(n \equiv 3 \pmod{5}\) are \(3, 8, 13, \ldots, 98\).
  • Numbers satisfying \(n \equiv 4 \pmod{5}\) are \(4, 9, 14, \ldots, 99\).
Both sequences form arithmetic progressions:
  • For \(n \equiv 3 \pmod{5}\), the first term is 3, last term is 98, and common difference is 5. The number of terms is \((98-3)/5+1=20\).
  • For \(n \equiv 4 \pmod{5}\), the first term is 4, last term is 99, and common difference is 5. The number of terms is \((99-4)/5+1=20\).
Adding the number of solutions gives \(20 + 20 = 40\) numbers between 1 and 100 for which \(n^2 + 3n + 2\) is divisible by 5.

Therefore, there are 20 such integers for each case, and the correct answer is simply the list of integers that results from the overlap of counting 3 and 4 as the same. Hence, the number of distinct integers \(n\) from \(1\) to \(100\) for which the expression is divisible by \(5\) is 20.
Was this answer helpful?
1
1
Hide Solution
collegedunia
Verified By Collegedunia

Approach Solution -2

We need integers \(n\) with \(1 \leq n \leq 100\) such that: \[ 5 \mid n^2 + 3n + 2 \] Check the expression modulo 5: \[ n^2 + 3n + 2 \equiv 0 \pmod{5} \] Check for \(n \equiv r \pmod{5}\), where \(r = 0,1,2,3,4\): - For \(r=0\): \[ 0^2 + 3 \times 0 + 2 = 2 \not\equiv 0 \pmod{5} \] - For \(r=1\): \[ 1 + 3 + 2 = 6 \equiv 1 \pmod{5} \neq 0 \] - For \(r=2\): \[ 4 + 6 + 2 = 12 \equiv 2 \pmod{5} \neq 0 \] - For \(r=3\): \[ 9 + 9 + 2 = 20 \equiv 0 \pmod{5} \] - For \(r=4\): \[ 16 + 12 + 2 = 30 \equiv 0 \pmod{5} \] So, values of \(n\) congruent to 3 or 4 modulo 5 satisfy the condition. Now count numbers between 1 and 100 congruent to 3 mod 5: \[ 3, 8, 13, \ldots, 98 \] Number of terms: \[ \left\lfloor \frac{98 - 3}{5} \right\rfloor + 1 = \left\lfloor \frac{95}{5} \right\rfloor + 1 = 19 + 1 = 20 \]
Was this answer helpful?
1
0