OFFSET
0,8
COMMENTS
This sequence is 56-regular.
LINKS
Eric Rowland, Table of n, a(n) for n = 0..20000
Lara Pudwell and Eric Rowland, Avoiding fractional powers over the natural numbers, arXiv:1510.02807 [math.CO] (2015).
FORMULA
a(56 n + 73) = 1 if a(n) = 0.
a(56 n + 73) = a(n) + 2 if a(n) != 0.
MATHEMATICA
(* This gives the first 4162 terms. *)
With[{u = {1, 2, 0, 2, 1, 1, 0, 0, 0, 1, 1, 2, 0, 2, 0, 2, 0, 1, 0, 1, 0, 1, 0, 2, 0, 2, 1, 1, 1, 0, 0, 0, 1, 2, 1, 2, 0, 2, 0, 1, 0, 1, 0, 1, 0, 2, 0, 2, 0, 2, 1, 1, 0, 0, 0}, v = {zero, 0, 0, 1, 1, 1, 0, 2, 0, 2, 0, 1, 1, 1, 0, 0, 0, 2}}, Replace[SubstitutionSystem[{zero -> Join[v, Append[u, 1]], 0 -> Append[u, 1], n_Integer :> Append[u, n + 2]}, {zero}, {{2}}], zero -> 0, {1}]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Eric Rowland, Oct 01 2016
STATUS
approved