Solution:
Let {1901,1902,…,2000}=R0∪R1∪R2 where each integer in Ri is congruent to i modulo 3. We note that ∣R0∣=∣R1∣=33 and ∣R2∣=34. Each permutation S=(a1,a2,…,a100) can be uniquely specified by describing a sequence S′=(a1′,a2′,…,a100′) of residues modulo 3 (containing exactly 33 zeros, 33 ones and 34 twos), and three permutations (one each of R0,R1, and R2). Note that the number of permutations of Ri is exactly ∣Ri∣!=1⋅2⋯∣Ri∣.
The condition on the partial sums of S depends only on the sequence of residues S′. In order to avoid a partial sum divisible by three, the subsequence formed by the 67 ones and twos in S′ must equal either 1,1,2,1,2,…,1,2 or 2,2,1,2,1,…,2,1. Since ∣R2∣=∣R1∣+1, only the second pattern is possible. The 33 zero entries in S′ may appear anywhere among a1′,a2′,…,a100′ provided that a1′=0. There are (3399)=33!66!99! ways to choose which entries in S′ equal zero. Thus there are exactly (3399) sequences S′ whose partial sums are not divisible by three. Therefore the total number of permutations S satisfying this requirement is exactly
(3399)⋅33!⋅33!⋅34!=66!99!⋅33!⋅34!.
Incidentally, this number equals approximately 4.4×10138.