MathDB
Two expressions are powers of a prime

Source: Latvian TST for Baltic Way 2022 P16

November 24, 2022
number theory

Problem Statement

Find all triples of positive integers (a,b,p)(a,b,p), where pp is a prime, such that both a+ba+b and ab+1ab+1 are some powers of pp (not necessarily the same).