Originally posted by jfulcer
The technical explanation:
First 3 digits = X; last 4 = Y
Phone number = 10,000X + Y
(250*(80X+1) + 2Y - 250)/2 is then the expression of the steps indicated.
So our equation is
(250(80X+1)+ 2Y -250)/2 = 10,000X +Y
factoring this out brings us to
(20,000X + 250 + 2Y -250)/2 = 10,000X +Y
drop the 250s as they cancel each other out, and do the division:
10,000X + Y = 10,000X + Y
Nutsy, an 8 digit phone number will not work as it does not shift your first 3 digits over far enough and the addition of the last '4' numbers makes for another problem. If you multiply by 800 at the beginning instead of 80, and add the last <b>5</b> digits of your number twice in the end and it should work for your phone number.