Part of 2021 Bangladesh Mathematical Olympiad
Source: Bangladesh Mathematical Olympiad 2021 Problem 6