Professional Documents
Culture Documents
16-17 Published by: Mathematical Association of America Stable URL: http://www.jstor.org/stable/25678004 . Accessed: 26/08/2013 08:55
Your use of the JSTOR archive indicates your acceptance of the Terms & Conditions of Use, available at . http://www.jstor.org/page/info/about/policies/terms.jsp
.
JSTOR is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range of content in a trusted digital archive. We use information technology and tools to increase productivity and facilitate new forms of scholarship. For more information about JSTOR, please contact support@jstor.org.
Mathematical Association of America is collaborating with JSTOR to digitize, preserve and extend access to Math Horizons.
http://www.jstor.org
This content downloaded from 61.95.193.239 on Mon, 26 Aug 2013 08:55:32 AM All use subject to JSTOR Terms and Conditions
KEITH DEVLIN
Playing Negadecimal
The
the Game
(1x 1)+ (0x 2)+ (1x 4) + (1x 32) +(0 x 8)+ (0x 16)
most familiar number sys tem to us is, of course, the dec imal system. This makes use of the ten digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 to represent numbers, and in our arithmetic we require a units col umn, a tens column, a hundreds col
umn, and so on.
of the bi Computers make are nary system, where there just two where
use
Consequently, all modern computers have built-in routines which auto matically convert numbers from dec imal form to binary and back again, to com allowing human operators
16 x 16 x 16.) In practice, program mers usually need to make use only of hexadecimal numbers involving two hex digits. This is because the bits that make up a computer word are grouped into bytes, collections of eight consecutive bits. Two hex digits
in every municate with themachine form. decimal day But sometimes it is necessary for the programmer to handle the num in the form (i.e., are stored in the that they binary) can easier made This be memory. hexadeci the so-called by utilizing bers in themachine
byte. So far, I have only been talking about positive whole numbers. Frac a
arithmetic we must "carry" a multiple of 10 occurs in a in binary whenever column, any occurs. of 2 multiple Mankind makes use of decimal have ten notation because people use computers binary nota fingers; tion because a computer is, at heart, a two-state machine, the current in a circuit being either on or off. The main problem with the bi nary system as far as humans are whenever concerned is that it takes impossibly to denote even mod long "words" erately large numbers. For instance, the number 229 expressed in binary
decimal/binary/hexadecimal point. There are various ways of doing this, but that is another story. What I want to look at now is how negative num bers are handled. The most common
method used in computers is for one mal system, that is the number sys bit of each computer word to be re tem with base 16. served to denote the sign of the num has the effect of replac This ber (say with a 0 denoting a positive ing four columns of binary by just one column of hexadecimal number, a 1 a negative number). (because 16 is the size of the fifth column Calculator displays usually work in binary, starting from the right). like this, except that on the dis In other words, every hexadecimal play a minus sign appears at the the left-hand instead of a location programmer by digit specified determines four binary digits in the and 1, nothing appears when the are fifteen hex number is positive. The computer. There computer adecimal (or "hex") digits: hardware is then constructed to keep 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. track of the signs of numbers dur ing arithmetic operations. But other have been
notation
methods
num For example, the hexadecimal ber 1BF5 represents the number: KEITH DEVLIN, the editor of FOCUS, is Dean of the School of Science at Saint Mary's College of California and is the Math author of the just released All the Print. That's Fit to
considered. used one of has who Anyone those mechanical calculating ma to fill offices 20 chines that used one of years ago will appreciate these methods. On those ancient ma in decimal (which worked 1from if subtracted arithmetic), you en an the machine would 0, display tire row of 9s. This is because, as far chines
This content downloaded from 61.95.193.239 on Mon, 26 Aug 2013 08:55:32 AM All use subject to JSTOR Terms and Conditions
the left-hand end, leaving zero; i.e., = 0. a com (?1) + 1 Similarly, in row a of Is could be puter, complete to represent ?1. In both these systems, it is easy to see how any neg ative number could be represented, not just ?1. used more intriguing is to use a negative base in the number For instance, representation.
as the machine was concerned, this a was to If 1 ?1. added full you really a of would 9s, you get carry all string the way along the number, and off
Even
is positive or negative, no is necessary in negadecimal. sign It is quite amusing to spend a few minutes converting numbers from to negadecimal and back decimal to per again, and to work out how and of form addition multiplication no in numbers written negadecimal tation. An ordinary microcomputer to act as a can easily be programmed in calculator for numbers negadeci mal format, and thismakes a nice ex number ercise in computer programming. The negabinary system could be used as a basis for computer hard ware design, and this would mean that it would not be necessary to have a sign bit in computer words.
/^Dv vf/
The matical studies
mathe degrees matics education, mathematical science. statistics, and actuarial The graduate faculty are active members of appropriate profes sional bodies and have practical experience as actuaries, mathe and li maticians, statisticians, censed teachers. Ball State
you could represent your numbers in the negadecimal system, where the base is ?10. In this system, the number 211 is equal to the decimal number
UMC-1, a Polish-made computer of the late 1950s and early 1960s, of which several dozen were made and other know of any non early computers using standard kinds of arithmetic? anyone installed. Does
Professor W. M. Turski, of Poland, told me that a computer was actu num ally built which used "?2" base bers both in the arithmetic and in It was the the memory addressing.
is lo University a pleasant mid cated inMuncie, western of 100,000. community The with university has approximately and 2500 graduate State six colleges 17,500 un
in negadecimal, negative num can be (like ?25) represented without negative signs being neces sary. In fact, any number can be writ ten out in negadecimal notation, and the decimal regardless of whether bers
student a good
DO YOU KNOWTHEWAY TO
San Jose State University
Graduate Studies inMathematics or Computer Science?
M.S. or MJL
ad interaction, student-faculty In addi vising, and learning. takes pride tion, the department in a long record of research pub lication. The matical of Mathe Department Sciences offers graduate providing stipends
assistantships
Students year and free tuition. a service fee of each $384 pay semester. contact: Dr. R. Whitaker, Chair of Mathematical Department Sciences Donald For more information
Financial Aid: teaching associateshipspay up to $12,000per students of $130441970. Non-residents year.Resident pay fees pay $I304-$I970 plus $246 per unit. All feesare per academic
year.
Contact:
Mathematics
& Computer
Science Department
Ball State University Muncie, IN 47306-0490 Ball State University is an Equal Opportunity/Affirmative
Action institution.
This content downloaded from 61.95.193.239 on Mon, 26 Aug 2013 08:55:32 AM All use subject to JSTOR Terms and Conditions