MathCastle
AIMESuperchallenge

AIME · Superchallenge problem

Let (x,y)(x, y) be the solution in positive integers of x2−13y2=1x^2 - 13y^2 = 1 with yy as small as possible. Find the remainder when x+yx + y is divided by 10001000.

Practice more like this