Problem

Source: Stars of Mathematics 2007, Day 1, Problem 2

Tags: number theory



Find all natural numbers $ n,x,y $ such that $ \big| 2^x-n^{y+1}\big| =1 . $