Problem

Source: JBMO TST Bosnia and Herzegovina 2022

Tags: JBMO TST, number theory, national olympiad



Let $a,b,c$ be positive integers greater than $1$ such that $$p=ab+bc+ac$$is prime. A) Prove that $a^2, b^2, c^2$ all have different reminder $mod\ p$. B) Prove that $a^3, b^3, c^3$ all have different reminder $mod\ p$.