I reasoned it this way: divisibility by 4 has 4 congruence classes. Only two of these are such that $a^6 + a \equiv 2 \pmod 4$; the others have no remainder. In $\sum_{i=0}^{102} i^6+i$ there are 52 summands that belong to the first two classes. So $52.2 = 104 \equiv 0 \pmod 4$. Hence, the first remainder is 0.
Mutatis mutandis for the remainder of the division by 5, which according to my calculations is 3.
Am I too off the mark here?
For $5$, the way I did it is as follows:
Note that $i^5\equiv i\mod 5$ (by Fermat's little theorem). So, $i^6+i\equiv i^2+i\mod 5$. So, your sum is congruent to $$\sum_{i=1}^{102} i^2+i=\frac{(102)(103)(205)}{6}+\frac{(102)(103)}{2}\equiv 0+3\equiv 3\mod 5.$$