1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Number theory, converting numbers too different bases

  1. Oct 5, 2008 #1
    1. The problem statement, all variables and given/known data

    Show that for any fixed a and b, there is an algorithm to convert an n-digit number from
    base a to base b with O(n^2) operations.

    3. The attempt at a solution

    Really i am completley lost here. Working backwards, i know to convert from base a to a base b you must use the division algorithm, which requires something on the order of (n^2) operations, but i really dont know how to show any of this.
     
  2. jcsd
  3. Oct 6, 2008 #2
    Any thoughts?
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook