Number theory, converting numbers too different bases

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 3K views
SNOOTCHIEBOOCHEE
Messages
141
Reaction score
0

Homework Statement



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.

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 don't know how to show any of this.
 
Physics news on Phys.org
Any thoughts?