## Task 23/89

A sequence is given by the formation rule

$$
a_{k}=p \cdot k \cdot(k+1)+1
$$

where $p$ is a prime number and $k>0$. The 7th term is the square of a prime number $P$. Determine all possible pairs $(p ; P)$.

---