History of Mathematics
in India IIT Gandhinagar, home

Project Brahmagupta · problem 70

Nārāyaṇa’s Factorisation

Nārāyaṇa Paṇḍita factors a number NN by looking for an xx such that x2−Nx^2 - N is a perfect square y2y^2, whence N=(x−y)(x+y)N = (x - y)(x + y). He tries x=⌈N⌉x = \lceil \sqrt N \rceil, then ⌈N⌉+1\lceil \sqrt N \rceil + 1, and so on. For N=1,000,009N = 1{,}000{,}009, how many values of xx are tried, counting the successful one?

Try it

Check an answer

Enter a number, or a decimal where the problem asks for one. Only a hash of the answer is kept on this page.

Problem 70 of Project Brahmagupta, published under the Creative Commons Attribution 4.0 licence. No solutions are published.