Problem

Source: 2022 China TST, Test 4 P4

Tags: Diophantine equation, number theory



Find all positive integers $a,b,c$ and prime $p$ satisfying that \[ 2^a p^b=(p+2)^c+1.\]