OFFSET
1,1
COMMENTS
The (2,1)-version of the infinite Fibonacci word, A014675, as a sequence, is (2, 1, 2, 2, 1, 2, 1, 2, 2, 1, 2, 2, 1, 2, 1, 2, 2,...). Its limit-reverse, A245920, is the sequence (2, 1, 2, 1, 2, 2, 1, 2, 1, 2, 2, 1, 2, 2, 1,...), which is the continued fraction for 2.729944...
For the (0,1)-version of the infinite Fibonacci word 0100101001001... (A003849), the decimal expansion is the same except for the first digit. That is 0.729944194... . - Gandhar Joshi, Mar 28 2024
EXAMPLE
[2,1,2,1,2,2,1,2,1,2,...] = 2.72994419476785022907837430700599816738...
MATHEMATICA
z = 300; seqPosition2[list_, seqtofind_] := Last[Last[Position[Partition[list, Length[#], 1], Flatten[{___, #, ___}], 1, 2]]] &[seqtofind]; x = GoldenRatio; s = Differences[Table[Floor[n*x], {n, 1, z^2}]]; (* A014675 *)
x1 = N[FromContinuedFraction[s], 100]
r1 = RealDigits[x1, 10] (* A245975 *)
ans = Join[{s[[p[0] = pos = seqPosition2[s, #] - 1]]}, #] &[{s[[1]]}];
cfs = Table[s = Drop[s, pos - 1]; ans = Join[{s[[p[n] = pos = seqPosition2[s, #] - 1]]}, #] &[ans], {n, z}];
rcf = Last[Map[Reverse, cfs]] (* A245920 *)
x2 = N[FromContinuedFraction[rcf], z]
r2 = RealDigits[x2, 10] (* this sequence *)
CROSSREFS
KEYWORD
nonn,cons
AUTHOR
Clark Kimberling and Peter J. C. Moses, Aug 08 2014
STATUS
approved