This problem was given in India by the mathematician Brahmagupta in 628 AD in his treatise Brahma Sputa Siddhanta:
Solve Pell's equation
for integers x , y > 0 {\displaystyle x,y>0} .
Brahmagupta gave the smallest solution as
This article about the history of mathematics is a stub. You can help Wikipedia by adding missing information.