Problem

Source: Serbia JBMO TST 2024 P1

Tags: number theory



Find all non-negative integers $x, y$ and primes $p$ such that $$3^x+p^2=7 \cdot 2^y.$$