Post Reply 
(38G) OEIS A262389: Last Digit Composite
09-13-2017, 06:09 PM (This post was last modified: 09-14-2017 05:37 AM by Gerald H.)
Post: #4
RE: (38G) OEIS A262389: Last Digit Composite
Bravo Didier!

On 38G you must have brackets around (NOT(N MOD 4)) then it works OK.

I tried a formula, but yours beats mine.

Here's mine:

Code:
RECURSE(U,(5*N+1-U2(N)+(3+U2(N))*U2((2*N-3-U2(N))/4)/2)/2,4,6)►U1(N):
CHECK 1:
RECURSE(U,IFTE(N MOD 2,-1,1),-1,1)►U2(N):

just for the record.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (38G) OEIS A262389: Last Digit Composite - Gerald H - 09-13-2017 06:09 PM



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