To factor this expression the first step is to rewrite the second term as if it were a difference, this way:
Now, we need to group the terms:
Factor each group of terms using common factor:
At this point, we can determine that (p+1) is a common factor of the expression, so we can rewrite it this way:
And that is the factored expression.