Post Reply 
Request for "Decimal Period of 1/X in Base Y" program
03-01-2015, 06:17 PM
Post: #18
RE: Request for "Multiplicative Order of Y (mod X)" program
(03-01-2015 09:48 AM)Gerald H Wrote:  But this prog is better: ...

Uh oh. Running it after 12 ENTER 23 yields 22, but the correct answer for the period of 1/23 in base 12 (as returned by my URPL program above) is 11, as can be seen by actually writing 1/23 in base 12:

0.06316948421 06316948421 06316948421 06316948421 ...

Am I misunderstanding something here? It happens. Thanks in advance for your patience.

Disclaimer: My program is correct not based on any personal authority which I neither have nor have ever claimed to have, but it SEEMS TO ME to be correct based on empirical data. I only mention this due to some creepy and cryptic references recently made here and in the General Software Library about the danger of giving credence to anybody based on authority.

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Request for "Multiplicative Order of Y (mod X)" program - Joe Horn - 03-01-2015 06:17 PM



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