Post Reply 
(33s) OEIS A2516: EARLIEST SEQUENCE WITH A(A(N)) = 2N
10-22-2022, 10:46 AM
Post: #14
RE: (33s) OEIS A2516: EARLIEST SEQUENCE WITH A(A(N)) = 2N
An improved version of the previous programme.

I fear the section of line T10

SGN(IP(RMDR(N:4)- 0.1))

is awkward - Could someone with superior arithmetic abilities please suggest a more elegant expression?

Code:
1.    LBL S
2.    x=0?
3.    RTN
4.    STO N
5.    SGN
6.    STO C
1.    LBL T
2.    CLx
3.    RMDR(N:-2)+2
4.    STO* C
5.    STO/ N
6.    ACOSH
7.    x≠0?
8.    GTO T
9.    CLx
10.    C*(N+2+(N-6)*SGN(IP(RMDR(N:4)- 0.1))
11.    RTN

S: LN = 18
T: LN = 80
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (33s) OEIS A2516: EARLIEST SEQUENCE WITH A(A(N)) = 2N - Gerald H - 10-22-2022 10:46 AM



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