Problem

Source: CGMO 2004 P7

Tags: number theory unsolved, number theory



Let $ p$ and $ q$ be two coprime positive integers, and $ n$ be a non-negative integer. Determine the number of integers that can be written in the form $ ip + jq$, where $ i$ and $ j$ are non-negative integers with $ i + j \leq n$.