Post Reply 
Request for "Decimal Period of 1/X in Base Y" program
03-02-2015, 10:33 AM
Post: #24
RE: Request for "Decimal Period of 1/X in Base Y" program
(03-02-2015 07:09 AM)Joe Horn Wrote:  
(03-01-2015 10:17 PM)Gerald H Wrote:  If you want to do it for any base, instead of removing 2s & 5s, remove any factors of that base & change the 10 near the end for the required base - I believe that will solve it.

Will try that. I hope it's a valid method, because that's the method used by my URPL program, but it's much slower than yours.

Quote:It might be an idea to change title of thread so others can find solution to length of period problem.

Good idea. Done.

OK, how about this prog:

«
WHILE DUP PICK3 GCD DUP 1 >
REPEAT /
END DROP SWAP ORD
»
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Request for "Decimal Period of 1/X in Base Y" program - Gerald H - 03-02-2015 10:33 AM



User(s) browsing this thread: 2 Guest(s)