(38G) OEIS A116966 & A116996
04-07-2015, 08:58 AM (This post was last modified: 06-15-2017 01:55 PM by Gene.)
Post: #1
 Gerald H Senior Member Posts: 1,414 Joined: May 2014
(38G) OEIS A116966 & A116996
The programme N13245 sets up the Sequence App to produce A116966 in U1 & the partial sums (A116996) in U2.

http://oeis.org/A116966

http://oeis.org/A116996

The sub-programme SEQSET cleans the Sequence App & sets flags as I prefer.

N13245

RUN SEQSET:
RECURSE(U,(N-1)+IFTE(U3(N-1)==1,2,IFTE(U3(N-1)==2,0,1)),1,3)►U1(N):
CHECK 1:
RECURSE(U,N*(N+1)/2+IFTE(U3(N)==2,1,0),1,4)►U2(N):
CHECK 2:
RECURSE(U,N MOD 4,1,2)►U3(N):

SEQSET

SELECT Sequence:
UNCHECK 0:
0►NumFont:
0►Simult:
2►Angle:
1►InvCross:
1►NumStep:
1►Format:
1►NumCol:
1►NumStart:
6►NumRow:
RECURSE(U,0,0,0)►U1(N):
Ans►U2(N):
Ans►U3(N):
Ans►U4(N):
Ans►U5(N):
Ans►U6(N):
Ans►U7(N):
Ans►U8(N):
Ans►U9(N):
Ans►U0(N):
04-10-2015, 05:27 AM
Post: #2
 Gerald H Senior Member Posts: 1,414 Joined: May 2014
RE: HP 38G: OEIS A116966 & A116996
You might be interested to add U4

RECURSE(U,N/2*(N+1)+(U3(N)==2),1,4)►U4(N):
CHECK 4:

& compare the accuracy for terms > 1,000,000 compared with U2.
 « Next Oldest | Next Newest »

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