Problem

Source: Cono Sur 2024

Tags: number theory



Find all positive integers $n$ such that $3^n - 2^n - 1$ is a perfect square.