$a)$ Let $p$ and $q$ be distinct prime numbers such that $p+q^2$ divides $p^2+q$. Prove that $p+q^2$ divides $pq-1$. $b)$ Find all prime numbers $p$ such that $p+121$ divides $p^2+11$.
Problem
Source: Bosnia and Herzegovina TST 2010 problem 1
Tags: number theory, prime numbers, number theory proposed