The answer is 2015. To prove this, first, observe (using Euclid's algorithm, for example), that
15⋅17−2⋅127=1(1)
Next, note that
2016=(17−1)(127−1)=16⋅127−17+1=16⋅127−17+15⋅17−2⋅127=14⋅127+14⋅17(2)
We now claim: If z>2016 is an integer, then z=127a+17b, for some non-negative integers a,b.
To prove the claim, we note that by (1), z=127c+17d, for some integers c,d, and then z=127(c+17y)+17(d−127y), for any integer y. So we can write
z=127a+17b, with integers a,b with a≥0.
Choose such a representation with b greatest possible. If b≥0, the Claim is established. Suppose, for the sake of contradiction, that b<0. Then z=127(a−17)+17(b+127), and, thus, by our choice of b, a−17<0, and thus z=127a+17b≤127⋅16−17<2016, contradicting our hypotheses. So the Claim is proved.
Combining this with (2), we see that every integer w≥2016 is expressible as w=17x+127y, for some non-negative integers x,y.
Finally, suppose that 2015=16⋅127−17=17u+127v, for some non-negative integers u,v. Then, using subtraction, 127(16−v)=17(u+1). This shows that the positive number u+1 is divisible by 127 and so u≥126, implying that 2015≥17⋅126, which is false. Hence 2015 is the integer sought.