Post Reply 
Mini-Challenge: Rudin-Shapiro Sequence
12-10-2022, 05:54 AM (This post was last modified: 12-11-2022 03:45 AM by Gerald H.)
Post: #2
RE: Mini-Challenge: Rudin-Shapiro Sequence
Edit 2022-12-11: Supplied missing "→". CKSUM & SIZE remain correct.

For 48G, 49G & 50g.

Code:
CKSUM # 9B57h

SIZE 162.

«
  « DUP 2. >
    IF
    THEN DUP 4. / IP SWAP 4. MOD DUP 1. >
      IF
      THEN SWAP DUP + 1. + ←P EVAL SWAP 2. MOD +
      ELSE DROP ←P EVAL
      END
    ELSE DROP 0.
    END
  » → ←P
  « ←P EVAL
  »
»
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Mini-Challenge: Rudin-Shapiro Sequence - Gerald H - 12-10-2022 05:54 AM



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