2026-06-13

Problem — 2026-06-13

Medium

MediumNumber theory

What is the sum of all positive integers n≤100n \leq 100 for which n(n+1)n(n+1) is divisible by 66?

Enter an integer

Show solution
n(n+1)n(n+1) is always even (product of consecutive integers), so divisibility by 66 reduces to divisibility by 33, which holds iff 3∣n3 \mid n or 3∣(n+1)3 \mid (n+1), i.e., n≡0n \equiv 0 or 2(mod3)2 \pmod{3}. Values n≡0n \equiv 0: {3,6,…,99}\{3, 6, \ldots, 99\}, 3333 terms, sum =3(1+2+⋯+33)=3⋅561=1683= 3(1+2+\cdots+33) = 3 \cdot 561 = 1683. Values n≡2n \equiv 2: {2,5,…,98}\{2, 5, \ldots, 98\}, 3333 terms, sum =33⋅2+982=1650= 33 \cdot \frac{2+98}{2} = 1650. Total: 1683+1650=33331683 + 1650 = 3333.