Note that (n−1)(n5+n4+n3+n2+n+1)=n6−1=(n3−1)(n3+1)=(n−1)(n+1)(n2−n+1)(n2+n+1), and so
n5+n4+n3+n2+n+1=(n+1)(n2−n+1)(n2+n+1).
Because 199 is a prime number, this expression is divisible by 199 iff one of the factors n+1, n2−n+1 or n2+n+1 is divisible by 199. Divisibility of n+1 by 199 is equivalent to n≡198(mod199).
To solve the quadratic congruence n2−n+1≡0(mod199), we observe n2−n+1≡n2−200n+1≡(n−100)2−1002+1(mod199). Because 1002−1=200⋅50−1=199⋅50+49≡49(mod199), the congruence n2−n+1≡0(mod199) is equivalent to (n−100)2≡49(mod199). Again, because 199 is a prime, this has exactly two solutions (mod 199) which are determined by n−100≡±7(mod199). These two solutions are n≡107(mod199) and n≡93(mod199).
Note now that that (n−1)2+(n−1)+1=n2−n+1, hence n≡106(mod199) and n≡92(mod199) are the solutions of n2+n+1≡0(mod199).
This shows that n5+n4+n3+n2+n+1 is divisible by 199 iff n is congruent to 92, 93, 106, 107 or 198 (mod 199).