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.