Professional Documents
Culture Documents
,
'I'-
:.'~';':;"
,'" .f~j
million-di~it
.
,.!. :,
:7'
(.~:
'i,1'
...,-,
,,;J
,.;
.,. :'
:'~~
;
\:~
: ..\'i
"!;-~:i
:{;~t
"'.~~'.;tJ.~';~)
;,,;.~,
8:
s omewhat above the googol lie num-
f.,:
,-
s,
..~
.~
"
:~.
'."- .:::..;~ ;;.:~:..:.
;':;~~~:",~i:~1i"-'::.~"'NTIFI~
AM"RT~AIIi:;,:~~r;ri","1.99'l.~:~9
f,'\
:u:,:~
101.000.000,
ECM stands as the method is the Fast Fourier Transform (FFT).
of choice, although ECM cannot be ex- T11eFi'-r is most often thought of as a
pected to find all factors of such gar- meansfor ascertaining some spectrum,
as is done in analyzing birdsongs or hugantuan numbers.
13 Even for numbers that truly dwarf the man voices or in properly tuning an
googol, isolated factors can sometimes acoustic auditorium. It turns out that
be found using a centuries-old sieving ordinary multiplication-a fundamenmcthod. "n1eidea is to usewhat is called tal opcrationbetween numbers-can be
modular arithmctic, which keeps the dramatically enhancedvia FFT [seebox
sizes of numbers under control so that be/olv]. Arnold Schonageof the Univermachine memory is not exceeded,and sity of Bonn and others refined this asadroitly scan ("sieve") overtrial factors. tute observation into a rigorous theory
A decadeago Wilfrid Keller of the Uni- ~ring the 1970s.
versity of Hamburg useda sieving tech- }'5 FFT multiplication has beenused in
niquc to find a factor for the awesome cclebrated calculations of 7tto a great
F23471.
which has roughly 107.000deci- many Jigits. Granted 7t is not a bona
mal digits. Keller's factor itselfhas "only" ,fide large number, but to compute 7tto
about 7,000 digIts. And Robert ;J.Har- millions of digits involvesthe same'kind
lev, then at the California Institute of of arithmetic used in large-numberstudT~chnology,turned to sieving to find a ies. In 1985 R. William Gosper,Jr., of
Inc., in Palo Alto, Calif., com36-digit factor for the stultifying (goo- Syn1bolics,
golplex + 1); the factor is 316,912,650, puteJ 17 million digits of 7t. A year lat057,057,350,374,175,801,344,000,001. er David Bailey of the National Aeronautics nnd SpaccAdministration Ames
Rescarch <'~cntcrcomputed 7tto more
Algorithmic Advancemcnts
than 29 million digits. More recently,
l\f
Baileyand Grcgory Chudnovskyof ColM
any modern results on large numumbia Univcrsity renched one billion
bers have dcpended on algorithms
from seemingly unrelated fields. One digits. And Yasumnsa Kanada of the
example that could fairly be called the University of Tokyo has reported five
workhorse of all engincering-algorithms billion Jigits. In caseanyone wants to
rdinary multiplication is a long-winded process by any account, even for relatively small numbers: To multiply two
numbers, x and y, each having D digits, the usual, Hgrammar
schoolH method involves multiplying each successive digit of x
by every digit of y and then adding columnwise, for a total of
roughly oJ.operations. During the 1970s,mathematicians developed means for hastening multiplication of two D-digit numbers
byway of the FastFourier Transform (FFT). The FFT reduces the
number of operations down to the order of D log D. (For exam-
x = 18986723467242
+ I ~b~an~d ~gn;{~:
-,v--vv ""
V\
"b I
.+
take
only
50,000
operations.)
yond the scope of this article. In brief, the digits of two numbers,
x and y (actually, the digits in some number base most convenient for the computing machinery) are thought of as signals.
The FFTis applied to each signal in order to decompose the signal into its spectral components. This is done in the same way
that a biologist might decompose a whale song or some other
meaningful signal into frequency bands. These spectra are
kl
I I d
h f
b f
Th
.-pro
qulC y mu tIp Ie toget er, requency y requency.
en an Inverse FFT and some final manipulations are performed to yield
the digits of the product of x and y.
There are various, powerful modern enhancements to this bax.
sic FFTmultiplication. One such enhancement is to treat the dig-
60
. .
SCIENTIFIC AMERICAN
February 1997
=1001345787777
A..~":~~A~ance
.
sIgna
I"
0
ComputeFFTspectraof x andY
signalsand multiply spectratogether
I
..
+ I A..II
~.
T:raduct .npctrum "
d uct spectrum
Takeinversespectrumand
unbalance,to obtain x timesy /
-
y = 19012260610305440490
check this at home, the one-billionth dec- \" Just as with factoring problems, provmore than one million decimal digits.
imal place of x, Kanada says, is nine.
ing that a large number is prime is much Almost all the work to resolve the char\"
FFf has also been used to find large more complicated if the number is arbiacter of F22 depended on yet another
prime numbers. Over the past decade or trary-that is, if it is not of some special modification of FFf multiplication. This
so, David Slowinski of Cray Research form, as are the Mersenne primes. For proof has beencalled the longest calcuhas made a veritable art of discovering
primes of certain special fornls, "large"
lation ever perfornled for a "one-bit,"
record primes. Slowinski and his co- falls somewhere in the range of 2 I,O(JO,()()().
or yes-no, answer, and it took ahout
worker Paul Gage uncovered the prime
But currently it takes considerable com1016 computer operations. That is
21,257,787
-1 in mid-1996. A few months
putational effort to prove that a "ranroughly the same amount that went into
later, in November, programmers Joel dom" prime having only a few thousand generating the revolutionary Pixar-DisArmengaud of Paris and George F. digits is indeed prime. For example, in ney movie Toy StOI}',with its gloriously
Woltman of Orlando, Fla., working as 1992 it took severalweeks for Franl;ois rendered surfaces and animations.
part of a network project run by WoltMorian of the University of Claude Ber- z. \ Although it is natural to suspect the
man, found an even larger
prime: 21,398,269_1. This
number, which has over
400,000 decimal digits, is
the largest known prime
number as of this writing.
It is, like most other record
holders, a so-called Mersenne prime. These numbers take the form 2Q-1,
where q is an integer, and
are named after the 17thcentury French mathematician Marin Mersenne.\1For this latest discovery,
W91trpan optimized an algorithm called an irrational-base discrete weighted transform, the theory of
which I developed in 1991
with Barry Fagin of Dartmouth College and Joshua, I
Doenias of NeXT Software
in Redwood City, Calif. ~
This method was actually a ~
by-product of cryptography ..
~
research at NeXT.
COLOSSI become somewhat easierto contemplate-and compare-if one adopts a statistical view.
years before a parrot, pecking randomly at a
18 Blaine Garst, Doug For instance, it would take approximately 103,00(),OOO
Mitchell, Avadis Tevanian, keyboard, could reproduce by chanceThe Hound of the Baskervilles.This time span, though enorJr. and I implemented at mous, pales in comparison to the 101033
years that would elapsebefore fundamental quantum fIucN;XT what is one of the tuations might topple a beer can on a levelsurface. .
strongest-if not the strongest-encryption schemesavailable today, nard, using techniques developed joint-ly
based on Mersenne primes. This patentwith A.O.L. Atkin of the Universityof
ed scheme, termed Fast Elliptic EncrypIllinois, and others, to prove by comtion (FEE), uses the algebra of elliptic
puter that a particularl,505-digit numcurves, and it is very fast. Using, for exber,termed a partition number, is prime.
ample, the newfound Armengaud-Woltman prime 21,398,269
-1 as a basis, the
Colossal Composites
FEE system could readily encrypt this 1.0
issue of Scielttific Allterican into seem- I tis quite a bit easierto prove tilat some
ing gibberish. Under current numbernumber is not prime (that it is comtheoretical beliefs about the difficulty of posite, that is, made up of more than
cracking FEE codes, it would require, one prime factor). In 1992 Doenias,
without knowing the secret key, all the Christopher Norrie of Amdahl Corpocomputing power on earth more than
ration and I succeeded in proving by
1010,000years to decrypt the gibberish machine that the 22nd Fermat number,
back into a meaningful magazine.
2222+ 1, is composite. This number has
TI,prhn/fp"up
n{1~rupN"...I",r.
Ine Al/thor
Fltrther Readil1g
RICHARD E. CltANOALL
is chicf scicl1tist at NcXT Softwarc. Hc is also Vollum Adjunct Profcss{)r of 5cicncc and dircctor of thc Ccntcr for AJvanccd Computation at Rccd Collcgc. Crandall is thc
author of scven patcnts, {)II sul,jccts ran~in~ from clcctrc)llics tCt thc r;1st Elli"tic
l:ncryptu)11 systcm. 1111973 hc reccivcJ
his Ph.D. in physil."s from thc Mass;1chusctts Institutc of lcchl1olc)gy.
62
SCIENTIFIC AMl'.J{I(;,\N
Fchrllary
1997
, 9.5(,.
TJIE FI\8RIC 01' 11iE HEI\VEN~: THE DEVELOPMENTOF ASTRONOMY AND DYNAMICS. Stephen
limlmin and.June Goodfield. Harper & Row,1961.
AN INTRODUCTION
\"(!right.
(;)arclldc)n
TO TilE
TJIEORY
OF NUMBERS.
Fifth
edition.
G. H.
Hardy
and E. M.
Press, 1978.
I.rrru,\,'ooo's
MISCELlANY. Editcd hy Bcla Bollohas. Cambridge Uni,'ersity Press, 1986.
I.IIRI' OJ' 11IE INTEGFR~.J. Rohcrts. M:lthematical Association of America, 1992.
PRC).JI;(:TS
IN SCIENTII'IC COMI'UTATION. Richard E. Crandall. TELOS/Springer-Verlag, 1994.
.--"..""..,.~~~,~:
..:.c',