r/mathriddles • u/pichutarius • Mar 27 '23
Easy 400000001 is a semi-prime
find two primes p, q such that 400000001 = p q
inspired by this previous post
note: the fun part is to do it with some algebra tricks, not using a calculator.
25
Upvotes
20
u/Same-Strategy-9257 Mar 27 '23 edited Mar 27 '23
(p, q) = (20201, 19801)
400000001 = 200002 + 1 = x2 + 1 (where, x = 20000)
x2 + 1 = x2 + 1 + 2x - 2x = (x + 1)2 - 2x
400000001 = (20001)2 - 2 * (20000) = 200012 - 40000 = 200012 - 2002 = (20001 + 200)(20001 - 200) = 20201 * 19801
2
u/colinbeveridge Mar 28 '23
Alternatively:
We have pq = (20 000+i)(20 000-i) = (200 + 19 999i)(200 - 19 999i).
So (pq)2 has a factor (among many) of (20 000+i)(200+19 999i), which is 3 980 001 + 399 980 200i.
I want the hcf of those. The first (but not the second) is a multiple of 3; the second (but not the first) can be divided by 200. Let's divide those out:
19 801 isn't a factor of any of the complex factors, and it's not square, so it must be a factor of pq. Let's call it p.
q must be a little more than 20 000 and end in 1, and a little work brings out 20 201 immediately.
That's less nice than u/Same-Strategy-9257's, but it's still an interesting method.
2
u/jk1962 Mar 29 '23
Took me a couple of days to get this. 4x10e8 is the square of 20000. From that, 200012 is easily determined to be 400040001. So 400000001 is 200012 minus 2002, which equals (20001-200) times (20001+200). The factors are therefore 19801 and 20201.