Note that 60=3×4×5
I. 4|100n
So, 4 should divide n3+30n2
i.e., 4 should divide n2(n+30)
⇒n is even.
⇒2|n
II. 5|30n2+100n
So, 5 should divide n3
⇒5|n
III. 3|30n2
So, 3 should divide n3+100n
i.e., n3+100n≡0 (mod 3)
⇒n3+n≡0 (mod 3)
⇒n(n2+1)≡0 (mod 3)
If n≡±1 (mod 3),
then n2≡1 (mod 3)
⇒n2+1≡2 (mod 3)
So, neither of n and n2+1 are divisible by 3
If n≡0 (mod 3),
then n(n2+1)≡0 (mod 3)
So, n should be a multiple of 3
i.e., 3|n
From I,II and III,
n must be a multiple of 2×3×5=30
So, we have to find n such that 1≤n≤1998 and n should be a multiple of 30.
∴S=30+60+⋯+1980
⇒S=30(1+2+⋯+66)
=30×66×672
=66330
[S1000]=66