OFFSET
1,1
MATHEMATICA
(* Here, the condition k>1 is removed, so the 1st term is 1 instead of 4. *)
n = 28; w = Prepend[Nest[Flatten[Partition[#, 2] /. {{2, 2} -> {2, 2, 1, 1}, {2, 1} -> {2, 2, 1}, {1, 2} -> {2, 1, 1}, {1, 1} -> {2, 1}}] &, {2, 2}, n], 1];
wStr = ToString[FromDigits[w]];
Map[StringPosition[wStr, StringReverse[StringTake[wStr, #]], 1][[1]][[1]] &, Range[100]] (* Peter J. C. Moses, Feb 18 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved