Number theory, converting numbers too different bases

Click For Summary
SUMMARY

The discussion centers on the algorithm for converting an n-digit number from base a to base b, establishing that this conversion can be achieved with O(n^2) operations. The division algorithm is identified as a critical component in this process, facilitating the necessary calculations for the conversion. Participants emphasize the importance of understanding the underlying principles of number theory to effectively demonstrate the algorithm's efficiency. The conversation highlights the need for clarity in the steps involved in the conversion process.

PREREQUISITES
  • Understanding of number theory concepts
  • Familiarity with the division algorithm
  • Knowledge of algorithmic complexity, specifically O(n^2) notation
  • Basic skills in algorithm design and analysis
NEXT STEPS
  • Study the division algorithm in detail
  • Research algorithms for base conversion
  • Explore O(n^2) complexity in algorithm analysis
  • Learn about number representation in different bases
USEFUL FOR

Students studying computer science, mathematicians interested in number theory, and software developers working on algorithms related to number base conversions.

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?
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 22 ·
Replies
22
Views
2K
Replies
3
Views
2K
Replies
9
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 7 ·
Replies
7
Views
3K