Assume input N is a 2-digit positive number, then following these instructions:
1 . Multiply by 3 .
2 . Subract quadruple of N 's digit sum.
3 . Subract double of N 's digit product, then that's the output number O .
For example, if the input N is 2 8 , then the output O is 1 2 .
Some of input N 's value is same as output O 's, then what's the sum of O 's value?
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.
N = a b ⟹ N = 1 0 a + b Following the given instructions, N = 1 0 a + b ⟶ 3 0 a + 3 b ⟶ 3 0 a + 3 b − 4 ( a + b ) ⟶ 3 0 a + 3 b − 4 ( a + b ) − 2 ( a b ) = O If N = O , 1 0 a + b 0 b ( a + 1 ) = 3 0 a + 3 b − 4 a − 4 b − 2 a b = 1 6 a − 2 b − 2 a b = 8 a ⟹ b = a + 1 8 a Since a and a + 1 do not share a common factor (two consecutive numbers are always co-prime) and b is an integer, a + 1 must divide 8 .
Hence, a + 1 ∈ { 2 , 4 , 8 } ⟹ a ∈ { 1 , 3 , 7 } ⟹ ( a , b ) ∈ { ( 1 , 4 ) , ( 3 , 6 ) , ( 7 , 7 ) } ⟹ N ∈ { 1 4 , 3 6 , 7 7 }
Therefore, the sum of all possible values of O is 1 4 + 3 6 + 7 7 = 1 2 7
Problem Loading...
Note Loading...
Set Loading...
Algebra solution:
According to instructions, we get the equation
3 ( 1 0 a + b ) − 4 ( a + b ) − 2 a b = 1 0 a + b
Then rearrange it, we get
b = a + 1 8 a
So the output value O can be 1 4 , 3 6 , 7 7 .
Therefore, the sum of the answer is 1 2 7 .
Coding solution: