A number theory problem by Dominick Hing

Convert 682 9 { 682 }_{ 9 } to base 4.


The answer is 20300.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

1
2
3
4
5
temp = 560
while temp:
    print temp%4
    temp /= 4
# read the output backwards

Mehul Bafna
Oct 3, 2014

First converting 682 to base 9 (6 9^2+8 9^1+2*9^0)we get 560 and then converting it to base 4 we get answer

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...