base-n

What's the best way to do base36 arithmetic in Perl?

What's the best way to do base36 arithmetic in Perl? To be more specific, I need to be able to do the following: Operate on positive N-digit numbers in base 36 (e.g. digits are 0-9 A-Z) N is finite, say 9 Provide basic arithmetic, at the very least the following 3: Addition (A+B) Subtraction (A-B) Whole division, e.g. floor(A/B). S...

base-n series generator for a given number in java,,

I want to create a program for generating the series for the given base-n. , for example if my input is 2,then series shuould be, 00,01,10,11,etc.,(binary) if my input is 10,then series shuould be,1,2,3,4,5,etc.,(decimal) is there any general mechanism to find these numbers so that I can program for base-n., UPDATE:- After,working out....

Encode data for easy passing over phone

I need to encode some data (text) so that it can easily be passed by the user over phone. The text contains random characters and is normally not longer than 100 chars. Example: "37-b,kA.sZ:Bb9--10.y<§" I'd like to encode this text into more human readable form so that it can easily be passed over phone. Base36 produces a text that...