Post Reply 
(38G) OEIS A2516: A(A(N))=2*N
08-02-2017, 01:05 PM (This post was last modified: 09-13-2017 12:21 PM by Gerald H.)
Post: #1
(38G) OEIS A2516: A(A(N))=2*N
A programme to enter symbolics in the Sequence App to reproduce the sequence

https://oeis.org/A002516

Code:

A002516

RECURSE(U,IFTE(N MOD 2==0,2*U1(N/2),IFTE(N MOD 4==1,N+2,2*(N-2))),3,6)►U1(N):
CHECK 1:
Find all posts by this user
Quote this message in a reply
08-03-2017, 05:11 AM
Post: #2
RE: (38G) OEIS A2516, A(A(N))=2*N
Could someone please put the symbolics in a Prime to see if it works?
Find all posts by this user
Quote this message in a reply
08-03-2017, 07:19 AM
Post: #3
RE: (38G) OEIS A2516, A(A(N))=2*N
It seems to work:

       
Find all posts by this user
Quote this message in a reply
08-03-2017, 09:27 PM
Post: #4
RE: (38G) OEIS A2516, A(A(N))=2*N
Thank you, Didier. I have given up on the Prime & no longer have access to one.

Does this mean that previously noted defects in the Sequence App have been attended to?
Find all posts by this user
Quote this message in a reply
08-03-2017, 10:09 PM
Post: #5
RE: (38G) OEIS A2516, A(A(N))=2*N
The Prime is regularly updated and IMHO it is now one of the best if not the best calculator available. You can use the virtual calculator available here if you want to try it again.

I don't know exactly which Sequence issues you're referring to, but there has been several updates and fixes for this App.
Find all posts by this user
Quote this message in a reply
08-04-2017, 10:34 AM
Post: #6
RE: (38G) OEIS A2516, A(A(N))=2*N
I refer to the sequences mentioned in

http://www.hpmuseum.org/forum/thread-327...ght=hp+38g
Find all posts by this user
Quote this message in a reply
08-04-2017, 10:54 AM
Post: #7
RE: (38G) OEIS A2516, A(A(N))=2*N
(08-04-2017 10:34 AM)Gerald H Wrote:  I refer to the sequences mentioned in

http://www.hpmuseum.org/forum/thread-327...ght=hp+38g

The sequence referred in the first post of this thread is now correctly handled by the Prime Sequence App.
Find all posts by this user
Quote this message in a reply
08-04-2017, 11:10 AM
Post: #8
RE: (38G) OEIS A2516, A(A(N))=2*N
Thank you, Didier, & I'm very glad the fault has been corrected.
Find all posts by this user
Quote this message in a reply
Post Reply 




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