Problem #3 in Project Euler:
What is the largest prime factor of the number $600851475143$?
I want to solve this by hand. (I am doing this with all problems.) What techniques would allow me to figure this out? (Yes, I checked the prime factors up to $53$, but I got quite tired.)
First and foremost: there is no known fast general-case algorithm for factorization (that's the reason RSA encryption exists). Any hope you might have to solve the problem by hand lies in making some lucky guess.
Guess 1 (not lucky): suppose for our $N$, $N=ab$, $|a-b|$ is small. Then we have: $$N = ab = ({a+b \over 2})^2 - ({a-b \over 2})^2 \\ (\lceil \sqrt N \rceil + \delta)^2 - N = m^2$$ where $\delta$ is some small natural number. Testing $\delta$ from $0$ to $10$ fails in our case.
Guess 2 (lucky, but cheating): the method above also works for $pN$ where $p$ is odd. Let $p=55$, then $\lceil \sqrt {pN} \rceil = 5748638$, $(\lceil \sqrt {pN} \rceil + 1)^2 - pN = 19219456 = 4384^2$.