Z
Z
zergon3212017-05-26 17:24:02
Programming
zergon321, 2017-05-26 17:24:02

How to solve tasks of this type from the exam in computer science?

What is the smallest base of the positional number system x ,
in which 225 x \u003d 405 y , x and y are the bases of the number systems?
Write your answer as an integer.
I met only tasks where the basis of only one number system was the unknown. I tried to enter a function y(x)and do it through the derivative - it did not work. The correct answer for this problem is: x = 8.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rsa97, 2017-05-26
@Rsa97

225 x = 2∙x 2 + 2∙x + 5 = 4∙y 2 + 5 = 405 y
2∙x 2 + 2∙x = 4∙y 2
y min = max(4, 0, 5) + 1 = 6
2∙x 2 + 2∙x = 4∙6 2 = 144
x 2 + x - 72 = 0
D = 1 + 4*72 = 289
x 1 = -(1 + 17)/2 = -9
x 2 = -(1 - 17)/2 = 8
PS It is also possible in a more general form:
2∙x 2 + 2∙x = 4∙y 2
x 2 + x - 2∙y 2 = 0
D = 1 + 8∙y 2
x 1= -(1 + sqrt(1 + 8∙y 2 ))/2
x 2 = -(1 - sqrt(1 + 8∙y 2 ))/2

D
D3lphi, 2017-05-26
@D3lphi

638a0a0e41f04510b4178df55e54cbdf.jpg
I hope I wrote everything clearly enough.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question