Problem

Source: Bulgaria EGMO TST 2016 Day 1 Problem 1

Tags: number theory



Find all positive integers $x$ such that $3^x + x^2 + 135$ is a perfect square.