How to find the number z for which a^z= b^z

Правка en1, от Rising_Phoenix7, 2024-01-31 19:39:18

I was thinking about a statement which came up in yesterday's contest where the value of abs(a^x-b^x) was to be minimized. For x less than or equal to r. I was thinking about this problem on these lines:

Let p= abs(a^x-b^x), then 
 p = a^x-b^x or, p = b^x-a^x

 now if we take xor of statement one with a
 p^a = x-(a^b^x)  ..(1)
 and if we take xor of 2nd statement with b 
 p^b = x-(a^b^x)   ..(2)

 We know that both statements are same,

 so p^a=p^b    ..(3)

 Is this analogy correct? If yes, how can we find z for which the statement 3 would be true.
 Any help would be great, Thank you!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Rising_Phoenix7 2024-01-31 19:39:18 739 Initial revision (published)