OFFSET
0,2
COMMENTS
Number of run occurrences in the (n + 4)-th Fibonacci word A061107(n). (A run occurrence in a word x = x[1..t] is a pair (i, j) with 1 <= i <= j <= t such that x[i..j] has minimal period p, t >= 2*p, and neither x[i-1..j] nor x[i..j+1], if they exist, have period p.) - Jeffrey Shallit, Apr 09 2026
REFERENCES
M. Crochemore, L. Ilie, and W. Rytter, Repetitions in strings: algorithms and combinatorics, Theoret. Comput. Sci. 410 (2009), 5227-5235. See Theorem 7.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
M. Crochemore, L. Ilie, and W. Rytter, Repetitions in strings: algorithms and combinatorics. (Preprint version of TCS paper given in the References.) See Theorem 7.
Tomislav Došlić and Biserka Kolarec, On Log-Definite Tempered Combinatorial Sequences, Mathematics (2025) Vol. 13, Iss. 7, 1179.
Index entries for linear recurrences with constant coefficients, signature (2,0,-1).
FORMULA
a(n+1) = a(n) + 2*A000045(n+2). - Reinhard Zumkeller, Nov 17 2013
From Colin Barker, Feb 01 2017: (Start)
a(n) = -3 + (2^(1-n)*((1-r)^n*(-2+r) + (1+r)^n*(2+r))) / r where r=sqrt(5).
a(n) = 2*a(n-1) - a(n-3) for n>2. (End)
a(n) = 2*Fibonacci(n+3) - 3. - Greg Dresden, Oct 10 2020
E.g.f.: 4*exp(x/2)*(5*cosh(sqrt(5)*x/2) + 2*sqrt(5)*sinh(sqrt(5)*x/2))/5 - 3*exp(x). - Stefano Spezia, Apr 09 2025
MAPLE
A154691 := proc(n) coeftayl( (1+x+x^2)/(1-x-x^2)/(1-x), x=0, n) ; end proc:
MATHEMATICA
Fibonacci[Range[3, 60]]*2 -3 (* Vladimir Joseph Stephan Orlovsky, Mar 19 2010 *)
CoefficientList[Series[(1 + x + x^2)/((1 - x - x^2)(1 - x)), {x, 0, 40}], x] (* Vincenzo Librandi, Dec 18 2012 *)
PROG
(Haskell)
a154691 n = a154691_list !! n
a154691_list = 1 : zipWith (+)
a154691_list (drop 2 $ map (* 2) a000045_list)
-- Reinhard Zumkeller, Nov 17 2013
(PARI) Vec((1+x+x^2) / ((1-x-x^2)*(1-x)) + O(x^60)) \\ Colin Barker, Feb 01 2017
(Magma)
A154691:= func< n | 2*Fibonacci(n+3) - 3 >;
[A154691(n): n in [0..40]]; // G. C. Greubel, Jan 18 2025
(Python)
def A154691(n): return 2*fibonacci(n+3) - 3
print([A154691(n) for n in range(41)]) # G. C. Greubel, Jan 18 2025
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
R. J. Mathar, Jan 14 2009
STATUS
approved
