← All problems

Common Elements of Two Arithmetic Sequences

Number Theory 1250
Find the last 3 digits of the sum of all elements common to sets $A$ and $B$.$$\begin{align*} A &= \{1, 4, 7, 10, \dots,\ 3\times 2024 + 1\}\\ B &= \{2, 6, 10, 14, \dots,\ 4\times 2024 + 2\} \end{align*}$$