OFFSET
0,3
COMMENTS
a(33) = 118456929919 and a(34) = 250327022558 but we do not yet know a(32).
EXAMPLE
For a(5)=10, the pair (0,5) first occurs in A181391 at element 10.
MATHEMATICA
With[{s = Nest[# /. {{Longest[p___], a_, q___, a_} :> {p, a, q, a, Length[{a, q}]}, {a___} :> {a, 0}} &, {}, 10^3]}, TakeWhile[#, # > -1 &] &@ Array[If[Length@ # == 0, -1, #[[1, 1]] - 1 ] &@ SequencePosition[s, {0, #}] &, Max@ s, 0]] (* Michael De Vlieger, Jul 08 2019, after JungHwan Min at A181391 *)
CROSSREFS
KEYWORD
sign,more
AUTHOR
Tomas Rokicki, Jun 19 2019
STATUS
approved