home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD5.iso
/
workbench
/
libs
/
bignum_37_28.lha
/
BigNum
/
Examples
/
Suite
/
Suite.doc
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1997-01-21
|
218 b
|
15 lines
Suite 100000
display the biggest suite size :
U0= 1...100000
Un+1=Un/2 if Un is even
Un+1=3*(Un)+1 otherwise
break when Ut=1 and display t
This is a good example to mix normal integer and BigNum arithmetic.