Find the number of integers so that the $n^2+3n+2$ is divided by 6 when $1 \le n \le 25$.
I start by $6\mid n^2+3n+2 6|(n+1)(n+2) \implies 6k=(n+1)(n+2) $ when $ k \in Z$ we can see that for $n=$ $1,2,4,5,7,8,10,11....$ will work, but I am not sure how to continue from here .
(some HINT can be very appreciated ).
Additionally I would love see a combinatorics approach for this .
Thank you guys.
Being divisible by $6$ means being even and divisible by $3$.
So we simply can take the list of integers between $1$ and $25$ and remove the $8$ multiples of $3$ from this list. There remains $17$ integers.