Post Reply 
(49G & 33s) OEIS A10785: Repdigit Numbers (in Human Readable Form)
10-13-2022, 07:29 AM (This post was last modified: 10-13-2022 07:29 AM by Joe Horn.)
Post: #6
RE: (49G & 33s) OEIS A10785: Repdigit Numbers (in Human Readable Form)
(10-13-2022 07:06 AM)Gerald H Wrote:  ...
Code:
9.    IDIV(N:9)+1
...

which gives wrong answers, eg

8
111111111112

for input

999999999998

whereas my programme returns correct

8
111111111111

Is my implementation faulty?

No, you ran into a bug in the 33s when it evaluates "equations". If you store 999999999997 into N, then store IDIV(N:9)+1 in EQN, then execute it, the 33s returns the wrong answer (111111111112), whereas the 35s returns the correct answer (111111111111). Furthermore, the 33s returns the correct answer if you rewrite the program without using the EQN key.

I do not not know whether this bug in the 33s has been found before, or if you are its first discoverer.

<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: (49G & 33s) OEIS A10785: Repdigit Numbers (in Human Readable Form) - Joe Horn - 10-13-2022 07:29 AM



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