What is the largest positive integer n such that 1457 and 1754 leave the same remainder when divided by n?

Badada Apr 16, 2019

#1**+1 **

n=1; a=(1457 % n);b=(1754%n);if(a==b, goto4,goto5);printa,b,n; n++; if(n<2000, goto1, discard=0;

Rem n

0 0 1

2 2 3

8 8 9

5 5 11

26 26 27

5 5 33

71 71 99

**269 269 297**

**So, the largest n = 297 with a remainder of 269**

Guest Apr 16, 2019

#2**+2 **

**What is the largest positive integer n such that 1457 and 1754 leave the same remainder when divided by n?**

heureka Apr 18, 2019