Let's factor by grouping.
2n^2 + 7n + 5
2n^2 + 2n + 5n + 5
(2n^2 + 2n) + (5n + 5)
2n(n + 1) + 5(n + 1)
(2n+5)(n+1)
If 2n^2+7n+5 is prime, then one of the factors 2n+5 or n+1 must be 1. This is because a prime number can only be factored into 1 times itself. Example: 7 = 7*1.
Let's set each factor equal to 1 and see what happens.
- 2n+5 = 1 leads to n = -2. But it was stated that n > 0. So we rule out this case.
- n+1 = 1 leads to n = 0. This is ruled out as well since n > 0.
It is impossible for (2n+5)(n+1) to be prime since none of the factors is 1. Therefore, (2n+5)(n+1) = 2n^2+7n+5 is composite for positive integers n = 1, 2, 3, ...
--------------
Another way to think about it:
2n^2 + 7n + 5 = (2n+5)(n+1)
Since n > 0 both 2n+5 and n+1 are larger than 1.
This means we have two different positive factors. These factors may be prime or composite. They multiply to some composite value.
Example: If n = 4 then
(2n+5)(n+1) = (2*4+5)(4+1) = 13*5 = 65