How would I reverse this equation?

  • Thread starter deco05ie
  • Start date
52x95^0 + 79x95^1 + 0x95^2 + 66x95^3 = 56594307.

Lets say I'm given 56594307 and 95. How would I find
out the numbers 52,79,0 and 66?

Basically if you read the first section of this link
9.4.1 Text Blocking
http://www.math.mtu.edu/mathlab/COURSES/holt/dnt/phi4 [Broken].
html

I can make a program that can convert from text to
the block number but I don't know how to go from the
block number back to text. Sorry if this is something
really simple that I'm missing.

Thanks for any help.
 
Last edited by a moderator:
3,722
405
This is the same as writing the number in a base 95 numeration system.
So you can use the same procedure used to convert from decimal to binary notation.
You divide the number by 95 repeatedly until the quotient is less than 95.
The reminders for each step are the coefficients of the powers of 95 (first reminder is the coefficient of 95^0 and so on).
 
Thanks, it worked.
 

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving

Hot Threads

Top