home *** CD-ROM | disk | FTP | other *** search
RISC OS BBC BASIC V Source | 1989-07-20 | 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:
-