OFFSET
0,26
COMMENTS
a(n) gives the generational distance to the earliest finite ancestor when the binary expansion of n is interpreted as a pattern in Wolfram's Rule-30 cellular automaton or 0 if that pattern has no finite predecessors.
A110240 gives the record positions (after zero) and particularly, for n > 0, A110240(n) gives the first occurrence of n in this sequence.
See also comments in A269165.
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..32767
Eric Weisstein's World of Mathematics, Rule 30
FORMULA
PROG
(Scheme)
;; This implementation is based on given recurrence and utilitizes the memoization-macro definec:
;; This one computes the same with tail-recursive iteration:
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 21 2016
STATUS
approved