OFFSET
1,1
COMMENTS
EXAMPLE
[2, 2, 1, 2, 1, 2, 2, 1, 2, 2, 1,...] = 2.3663046946532726566824972058...
MATHEMATICA
seqPosition1[list_, seqtofind_] := If[Length[#] > Length[list], {}, Last[Last[ Position[Partition[list, Length[#], 1], Flatten[{___, #, ___}], 1, 1]]]] &[seqtofind]; s = Differences[Table[Floor[n*GoldenRatio], {n, 10000}]]; t = {{2}}; p[0] = seqPosition1[s, Last[t]]; s = Drop[s, p[0]]; Off[Last::nolast]; n = 1; While[(p[n] = seqPosition1[s, Last[t]]) > 0, (AppendTo[t, Take[s, {#, # + Length[Last[t]]}]]; s = Drop[s, #]) &[p[n]]; n++]; On[Last::nolast]; t1 = Last[t] (*A246127*)
q = -1 + Accumulate[Table[p[k], {k, 0, n - 1}]] (*A246128*)
u = N[FromContinuedFraction[t1], 100]
r = RealDigits[u][[1]] (* A246129 *)
CROSSREFS
KEYWORD
nonn,cons
AUTHOR
Clark Kimberling and Peter J. C. Moses, Aug 15 2014
STATUS
approved