Post Reply 
(49G & 33s) OEIS A10785: Repdigit Numbers (in Human Readable Form)
10-13-2022, 07:06 AM
Post: #5
RE: (49G & 33s) OEIS A10785: Repdigit Numbers (in Human Readable Form)
Joe, I have adapted your suggestion for 33s & come up with

Code:
1.    LBL C
2.    1
3.    -
4.    STO N
5.    9
6.    RMDR
7.    1
8.    +
9.    IDIV(N:9)+1
10.    RTN

which gives wrong answers, eg

8
111111111112

for input

999999999998

whereas my programme returns correct

8
111111111111

Is my implementation faulty?
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) - Gerald H - 10-13-2022 07:06 AM



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