HP Forums
(38G) OEIS A2516: A(A(N))=2*N - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: General Software Library (/forum-13.html)
+--- Thread: (38G) OEIS A2516: A(A(N))=2*N (/thread-8769.html)



(38G) OEIS A2516: A(A(N))=2*N - Gerald H - 08-02-2017 01:05 PM

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:



RE: (38G) OEIS A2516, A(A(N))=2*N - Gerald H - 08-03-2017 05:11 AM

Could someone please put the symbolics in a Prime to see if it works?


RE: (38G) OEIS A2516, A(A(N))=2*N - Didier Lachieze - 08-03-2017 07:19 AM

It seems to work:

[attachment=5081] [attachment=5082]


RE: (38G) OEIS A2516, A(A(N))=2*N - Gerald H - 08-03-2017 09:27 PM

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?


RE: (38G) OEIS A2516, A(A(N))=2*N - Didier Lachieze - 08-03-2017 10:09 PM

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.


RE: (38G) OEIS A2516, A(A(N))=2*N - Gerald H - 08-04-2017 10:34 AM

I refer to the sequences mentioned in

http://www.hpmuseum.org/forum/thread-3278.html?highlight=hp+38g


RE: (38G) OEIS A2516, A(A(N))=2*N - Didier Lachieze - 08-04-2017 10:54 AM

(08-04-2017 10:34 AM)Gerald H Wrote:  I refer to the sequences mentioned in

http://www.hpmuseum.org/forum/thread-3278.html?highlight=hp+38g

The sequence referred in the first post of this thread is now correctly handled by the Prime Sequence App.


RE: (38G) OEIS A2516, A(A(N))=2*N - Gerald H - 08-04-2017 11:10 AM

Thank you, Didier, & I'm very glad the fault has been corrected.