completing the given sequence using equation P(n) - P(n - 1) = P'(n)