MathDB
Good NT with orders

Source: Bulgarian Spring Tournament 2023 10.4

March 25, 2023
number theory

Problem Statement

Find all positive integers nn, such that there exists a positive integer mm and primes 1<p<q1<p<q such that qpmq-p \mid m and p,qnm+1p, q \mid n^m+1.