home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 1
/
ARM_CLUB_CD.iso
/
contents
/
apps
/
maths
/
progs
/
programs
/
Maths2
/
Anon
/
Puzz2
(
.txt
)
< 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
RISC OS BBC BASIC V Source
|
1990-02-10
|
298 b
|
16 lines
>Puzz2
Solves 1/X + 1/Y + 1/Z = 4/5
for integral solutions
Suspect only two solutions, not got around to proving !
A%=2:
D%=5*A%
N%=4*A%-5
B=1
C=(N%-B)/D%
1/C=
(1/C)
1/B=
(1/B)
A%,1/C,D%, 1/A%;"+";C;"+";1/D%;"=";1/A%+C+1/D%
A%+=1: