Brahmagupta's problemThis problem was given in India by the mathematician Brahmagupta in 628 AD in his treatise Brahma Sputa Siddhanta:Solve the Pell's equationfor integers.Brahmagupta gave the smallest solution as