IBM Research

PUZZLE   IBM-331

The CAT sequence

IBM Research · Ponder This · 2025-11

IBM Ponder This #331 · November 2025

We generate a sequence of strings s0,s1,s2, in the following manner:

  • s0 = "CAT"
  • sn is obtained from sn1 by substituting each letter of sn1 according to the following rules:
G -> T
T -> CA
C -> TG
A -> C

The first few steps yield the strings

CAT
TGCCA
CATTGTGC
TGCCACATCATTG

And so forth. One can see from the list that s3[3..7] is "CACA" (here [a..b] means "all the letters, starting from the index a, up to and not including the index b, where indexing starts from 0")

Your goal: Find sn[n..(n+1000)] for n=10100

A bonus "*" will be given for finding tn[n..(n+1000)] for n=10100 where the sequence t is defined simiarily to s but with the initial value t0 = "RABBITS" and the rules

G -> T,
T -> CA,
C -> BR,
A -> I,
R -> B,
B -> IS,
I -> TG,
S -> C,

Solution

Best opened after a real attempt

To be added.