Understand the problem
Source of the problem
Start with hints
=> => . It implies that both (b-p) and (b+p) must be powers of q. Hence gcd(b-p, b+p) = (b-p). b-p | b+p => b-p | 2p = 4q + 2. As, b-p is a power of q, it implies that b-p = 1 and q can be a prime or q = 2 and b-p = 2 as gcd (b-p, 4q+2) = 1 if q is an odd prime or 2 if q = 2. Thus, we get that ( b-p = 1 ) or ( b-p =2, q = 2 ) and p = 2q+1.
Connected Program at Cheenta
Math Olympiad is the greatest and most challenging academic contest for school students. Brilliant school students from over 100 countries participate in it every year. Cheenta works with small groups of gifted students through an intense training program. It is a deeply personalized journey toward intellectual prowess and technical sophistication.