Forum

Post 07.03.2010   # 1
Subject error in test example
You've got error in the task Palindrome for the last test example.

5, 15, 16, 176

The number 26 is between 16 and 176 and:

26 = 101 (base 5)

26 = 111 (base 15)

So it is double palindrome.
DiablO is offline Reply
Post 07.03.2010   # 2
111 in base 15 is:
1 * 15^2 + 1 ^ 15 + 1 = 225 + 15 + 1 = 241 != 26
hsilomedus is offline Reply
Post 07.03.2010   # 3
26:15 = 1 and 11
1:15 = 0 and 1

And 1*15^1 + 11*15^0 = 15+11=26
DiablO is offline Reply
Post 07.03.2010   # 4
If, for example, we're using the same logic as the HEX system, then 26 in base 15 is 1B.
1B or 1 with any other distinguishable character that represents 11 is not a palindrome.
hsilomedus is offline Reply
Post 07.03.2010   # 5
hsilomedus wrote:
If, for example, we're using the same logic as the HEX system, then 26 in base 15 is 1B.
1B or 1 with any other distinguishable character that represents 11 is not a palindrome.

Thanks for the help.

I realize that I made an error.

11 != 1 are different numbers
DiablO is offline Reply

Please login to post reply.