How many 6 digit positive integers satisfy the condition that when I write the number upside down in digital format , it increases in value by 520044?
Details and Assumptions :
Clarification: These numbers can't consist of digits 3, 4, or 7 because they are not readable when written upside down.
As an explicit example, when the number 120586 is written upside down, the number becomes 985021 so it increases in value by 864435.
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's overview all digit changes upon turning them "upside down":
As it was mentioned, numbers 3, 4 and 7 cannot be used.
We are working with 6-digit integers. Let's see what is difference between the integer and its "upside down":
p 5 p 4 p 3 p 2 p 1 p 0 − q 0 q 1 q 2 q 3 q 4 q 5 = 1 0 5 ⋅ p 5 + 1 0 4 ⋅ p 4 + 1 0 3 ⋅ p 3 + 1 0 2 ⋅ p 2 + 1 0 1 ⋅ p 1 + 1 0 0 ⋅ p 0 − 1 0 5 ⋅ q 0 − 1 0 4 ⋅ p 1 − 1 0 3 ⋅ p 2 − 1 0 2 ⋅ p 3 − 1 0 1 ⋅ p 4 − 1 0 0 ⋅ p 5 = [ 1 0 5 ⋅ ( p 5 − q 0 ) + 1 0 0 ⋅ ( p 0 − q 5 ) ] + [ 1 0 4 ⋅ ( p 4 − q 1 ) + 1 0 1 ⋅ ( p 1 − q 4 ) ] + [ 1 0 3 ⋅ ( p 3 − q 2 ) + 1 0 2 ⋅ ( p 2 − q 3 ) ] = O 5 , 0 + O 4 , 1 + O 3 , 2
As we can see the difference is sum of three numbers. Notice that only O 5 , 0 defines the last digit of the difference. Similarly the first digit is almost completely dependent on O 5 , 0 , except it can be less by 1 because O 4 , 1 or p 0 − q 5 may be negative or other. That means:
{ p 5 − q 0 = 5 ( o r 6 ) p 0 − q 5 = 4 ( o r − 6 )
It's easy to see that the only possible digits are: p 0 = 2 , p 5 = 8 (correspondingly, q 0 = 2 , q 5 = 8 ). That means that O 5 , 0 equals 599994. Thus O 4 , 1 + O 3 , 2 = − 7 9 9 5 0
Similarly digits -7 and 5 are defined by O 4 , 1 , except the first digit can vary by 1 (plus or minus). Since O 4 , 1 depends only on p 1 , p 4 , it's easy to find that the only possible values are p 1 = 6 , p 4 = 1 ( q 1 = 9 , q 4 = 1 ). That means O 4 , 1 = − 7 9 9 5 0 and O 3 , 2 = 0 . Getting O 3 , 2 = 0 is very easy because for every p 2 there is only p 3 that fits:
Thus we have 7 possible integers that satisfy the condition: