(33s) OEIS A2516: EARLIEST SEQUENCE WITH A(A(N)) = 2N
|
07-31-2022, 06:25 PM
(This post was last modified: 07-31-2022 06:26 PM by John Keith.)
Post: #5
|
|||
|
|||
RE: (33s): OEIS A2516 EARLIEST SEQUENCE WITH A(A(N)) = 2N
(07-31-2022 03:32 PM)Gerald H Wrote: ... the expression may have some meaning on 49G, as 77. and 77 are different entities on that calculator. Speaking of which, here is a program for any RPL calculator which returns a list of A002516. Given an integer n on the stack, the length of the list will be n + (1 if n is odd else 2). Approximate mode should be used on the 49 and 50 because MOD is slow for exact integers. Code:
The program is based on the third formula on the OEIS page. A list of 1000 terms takes about 4.5 seconds on my 50g in approximate mode. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)