What is the sum of all positive integers n≤100 for which n(n+1) is divisible by 6?
Enter an integer
Show solution
n(n+1) is always even (product of consecutive integers), so divisibility by 6 reduces to divisibility by 3, which holds iff 3∣n or 3∣(n+1), i.e., n≡0 or 2(mod3). Values n≡0: {3,6,…,99}, 33 terms, sum =3(1+2+⋯+33)=3⋅561=1683. Values n≡2: {2,5,…,98}, 33 terms, sum =33⋅22+98=1650. Total: 1683+1650=3333.