HP Forums

Full Version: (38G) OEIS A2516: A(A(N))=2*N
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:
Could someone please put the symbolics in a Prime to see if it works?
It seems to work:

[attachment=5081] [attachment=5082]
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?
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.
I refer to the sequences mentioned in

http://www.hpmuseum.org/forum/thread-327...ght=hp+38g
(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.
Thank you, Didier, & I'm very glad the fault has been corrected.
Reference URL's