MathDB
numbers < 2019 divisible by either 18 or 21, but not both

Source: New Zealand MO 2019 Round 1 p1

September 20, 2021
number theorydivisible

Problem Statement

How many positive integers less than 20192019 are divisible by either 1818 or 2121, but not both?