10's complement of a number statement

无人久伴 提交于 2019-12-13 03:34:05

问题


The values of a,x,y if 47x80 is the 10's complement of yaya0 is:

I calculated the 10's complement of yaya0 to be 100,000-yaya0 and then.

   47x80=100,000-yaya0

Now how to find values ?


回答1:


47080 + 100x = 100000 - (10000y + 1000a + 100y + 10a)
52920 = 100x + 10100y + 1010a

==> a = 2 otherwise you won`t get the 2 as tens

50900 = 100x + 10100y

this can be split up in 5 = y and 9 = x + y

so

a = 2
x = 4
y = 5



回答2:


47x80 represents a number where 'x' is the hundreds. So does yaya0 where 'y' represent the 10-thousands and the hundreds and 'a' represents the thousands and the tens.

The rest is obvious.



来源:https://stackoverflow.com/questions/26947908/10s-complement-of-a-number-statement

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!