Duotrigesimal (Base 32) Numbers
Posted by admin on 07 Jul 2007 at 12:00 AM
$5.00
Math and Statistics / Trionometry
By chance I read several of the base [any number] pages on your site.
I would like to mention a problem we had in finding a condensed way of
writing numbers.
In the financial software of our university we had to represent six-
digit customer project numbers in a four-position alphanumeric
database field. The traditional way. by maintaining conversion tables
with the numbers and their four position code, seemed cumbersome. I
thought that increasing the base number sufficiently would result in
four-position representations of decimal numbers up to 1000000.
Clearly hexadecimal numbers (Greek hexa-kai-deka = 16) were not the
answer, since FFFF represents decimal 65535. So I tried base 32. Each
position in a number would have values from 0 up to 31, and four
positions would result in 31*32^3 + 31*32^2 + 31*32 + 31, which is
of course equivalent to 32^4 - 1 = decimal 1048575. That would do the
trick.
I baptised these numbers "duotricesimal" (Latin duotriginta = 32).
For the position values 0-9 one uses of course 0-9, and for 10-15 the
hexadecimal notation A-F. For 16 and up we excluded the letters I and
O to avoid mixups with 1 and 0. So following 0-9 we have in use:
A 10 G 16 N 22 U 28
B 11 H 17 P 23 V 29
C 12 J 18 Q 24 W 30
D 13 K 19 R 25 X 31
E 14 L 20 S 26
F 15 M 21 T 27
Next thing was to write short function procedures to convert decimal
to duotricesimal and vice versa. Because base conversions are so
simple, they turn out to be much faster than look-ups in conversion
tables, and we avoided an extra table to maintain.
Best regards,
Jan A. de Boer
Office of the Faculty of Mathematics and Natural Sciences
University of Groningen, The Netherlands
Accepted Answer:
| Answer provided by admin on 07 Jul 2007 at 12:00 AM Hi, Jan. It's always nice to hear that the math we discuss has real |
| Rating: * * * * * Awarded: $5.00 |
Most Recent Questions
Most Recent Answers
Home Page
Login
Register
Information Technology
Software, Hardware, Design
Programming LanguagesDatabase
Graphic Design
Operating Platforms
Hardware and Networking
Math and Science
Homework Help
Biology and GeologyMath and Statistics
- Algebra I
- Algebra II
- Basic Arithmetic
- Boolean Algebra
- Calculus I
- Calculus II
- Combinatorics
- Differential Equations
- Geometry
- Linear Algebra
- Logic
- Multi-Variable Calculus
- Pre-algebra
- Probability
- Statistics
- Trionometry
Chemistry
Physics
Engineering
Are you an information
technology or
math/science expert?
You can earn money by
providing answers to questions
at AnswerArchive.com.
Learn How