Suppose an odd prime
p divides
20198+1. Then
20198≡−1(modp), so
201916≡1 while
20198≡1: the multiplicative order of
2019 modulo
p is exactly
16. Since the order divides
p−1, we need
p≡1(mod16), and the smallest such primes are
17 and
97.
Modulo
17: 2019≡13, and
132=169≡−1, so
20198≡(−1)4=1 and
20198+1≡2=0. Modulo
97: 2019≡−18, and squaring repeatedly,
201922019420198≡324≡33,≡332=1089≡22,≡222=484≡−1(mod97).
So
97 divides
20198+1, and it is the least odd prime factor:
97.