Okay, so I wrote a program to try and factor a number. The small numbers that I am using to test are 11 and 31. Those, multiplied together are 341. So I am trying to factor 341, as a test.
So, when I ran my program, I got 17. Weird number, right? Well actually, there is some interesting math with it:
So the 3 is the same. What I want to know, is what is that number 3? In other words, I don't know the factors, I only know the number 17. I also know that with the two factors, f1 and f2, and the program I wrote output the number P, It seems to be true that:
f2-P-f1 = f2-(f1+P) = f2-f1-P
(In this case, it is all 3.)
If I find that number, that makes them all equal, I can find the factors. Any suggestions?
So far, I have found that 341/17 is about 20, which is f2-f1, which means f2-f1-P is my mystery number. I don't know if it works for all numbers, but… I will check.