📜  门| GATE-CS-2015(Set 3)|第45章

📅  最后修改于: 2021-06-28 21:16:45             🧑  作者: Mango

考虑等式(43) x =(y3) 8 ,其中x和y是未知的。可能的解决方案数是________。
(A) 3
(B) 4
(C) 5
(D) 6答案: (C)
解释:

3 + 4x = 3 + 8y where 0 <= y = 5 (because the number represented in base x is 34)

x = 2y  and 0 <= y <= 7

The following are possible solutions
y = 3, 4, 5, 6, 7
x = 6, 8, 10, 12, 14

这个问题的测验