Part of 2019 Nigeria Senior MO Round 2
Source: Nigeria senior mathematics Olympiad round 2 problem 4.