Marilyn has forgotten her four-digit pin code! Fortunately, she remembers that when the two-digit number formed by the last two digits is subtracted from the two-digit number formed by the first two digits the result is 9. Furthermore she remembers that the sum of the squares of the first and last digits minus the sum of the squares of the second and third digits is exactly the two-digit number formed by the last two digits. What is Marilyn's four-digit pin code?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Let the digits of the number be a , b , c , d . Then each of them is an integer between 0 and 9 inclusive. We have 1 0 a + b − 1 0 c − d = 9 and a 2 + d 2 − b 2 − c 2 = 1 0 c + d , or 1 0 ( a − c ) + ( b − d ) = 9 and ( a + c ) ( a − c ) + ( d + b ) ( d − b ) = 1 0 c + d . Therefore a + b = 9 c , and hence b = 8 c − 1 . Therefore a = 2 , b = 7 , c = 1 , d = 8 , and the required number is 2 7 1 8