The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
(38G) OEIS A065359: (Alternating Bit Sum) & Partial sums
08-10-2017, 08:07 AM (This post was last modified: 09-13-2017 12:21 PM by Gerald H.)
Post: #1
(38G) OEIS A065359: (Alternating Bit Sum) & Partial sums
A programme to insert symbolics in the Sequence App to reproduce the sequence

https://oeis.org/A065359

& its partial sums

https://oeis.org/A005536

Code:

A065359

RECURSE(U,N MOD 2-U1(U3(N)),1,-1)►U1(N):
CHECK 1:
RECURSE(U,U3(N)-IFTE(N MOD 2,2*U2(U3(N))-1,U2(U3(N))+U2(U3(N)-1)),1,0)►U2(N):
CHECK 2:
RECURSE(U,INT(N/2),0,1)►U3(N):
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(38G) OEIS A065359: (Alternating Bit Sum) & Partial sums - Gerald H - 08-10-2017 08:07 AM



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