OFFSET
1,1
EXAMPLE
The five decimal digits of Pi starting at the 412th digit are {5,7,5,9,5}. Because the first, third, and fifth of those five digits are the same, 412 is a term of the sequence.
MATHEMATICA
With[{pid=RealDigits[Pi, 10, 10000][[1]]}, SequencePosition[pid, {x_, _, x_, _, x_}]][[All, 1]] (* Requires Mathematica version 10 or later *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Harvey P. Dale, Jan 16 2020
STATUS
approved