2023 SSMO Relay Round 5 Problems/Problem 2

Problem

Let $T=$ TNYWR. Let $a_n = \text{lcm} \{1, 2, \dots n\}$ for positive integers $n$.Compute \[\sum_{i=1}^N a_i \pmod {720}.\]

Solution