Subcontests
(4)2022 Junior Balkan MO, Problem 4
We call an even positive integer n nice if the set {1,2,…,n} can be partitioned into 2n two-element subsets, such that the sum of the elements in each subset is a power of 3. For example, 6 is nice, because the set {1,2,3,4,5,6} can be partitioned into subsets {1,2}, {3,6}, {4,5}. Find the number of nice positive integers which are smaller than 32022. 2022 Junior Balkan MO, Problem 3
Find all quadruples of positive integers (p,q,a,b), where p and q are prime numbers and a>1, such that pa=1+5qb.