cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A001911 a(n) = Fibonacci(n+3) - 2.

Original entry on oeis.org

0, 1, 3, 6, 11, 19, 32, 53, 87, 142, 231, 375, 608, 985, 1595, 2582, 4179, 6763, 10944, 17709, 28655, 46366, 75023, 121391, 196416, 317809, 514227, 832038, 1346267, 2178307, 3524576, 5702885, 9227463, 14930350, 24157815, 39088167, 63245984
Offset: 0

Views

Author

Keywords

Comments

This is the sequence A(0,1;1,1;2) of the family of sequences [a,b:c,d:k] considered by G. Detlefs, and treated as A(a,b;c,d;k) in the W. Lang link given below. - Wolfdieter Lang, Oct 17 2010
Ternary words of length n - 1 with subwords (0, 1), (0, 2) and (2, 2) not allowed. - Olivier Gérard, Aug 28 2012
For subsets of (1, 2, 3, 5, 8, 13, ...) Fibonacci Maximal terms (Cf. A181631) equals the number of leading 1's per subset. For example, (7-11) in Fibonacci Maximal = (1010, 1011, 1101, 1110, 1111), numbers of leading 1's = (1 + 1 + 2 + 3 + 4) = 11 = a(4) = row 4 of triangle A181631. - Gary W. Adamson, Nov 02 2010
As in our 2009 paper, we use two types of Fibonacci trees: - Ta: Fibonacci analog of binomial trees; Tb: Binary Fibonacci trees. Let D(r(k)) be the sum over all distances of the form d(r, x), across all vertices x of the tree rooted at r of order k. Ignoring r, but overloading, let D(a(k)) and D(b(k)) be the distance sums for the Fibonacci trees Ta and Tb respectively of the order k. Using the sum-of-product form in Equations (18) and (21) in our paper it follows that F(k+4) - 2 = D(a(k+1)) - D(b(k-1)). - K.V.Iyer and P. Venkata Subba Reddy, Apr 30 2011
a(n) is the length of the n-th palindromic prefix of the infinite Fibonacci word A003849. - Dimitri Hendriks, May 19 2014
The first k terms of the infinite Fibonacci word A014675 are palindromic if and only if k is a positive term of this sequence. - Clark Kimberling, Jul 14 2014
Can be expressed in terms of a rule similar to Recamán's sequence (A005132). Instead of following the Recamán rule "subtract if possible, otherwise add", this sequence follows the rule "If subtraction is possible, do nothing; otherwise add." For example when at the fourth term, 6, it is possible to subtract 4 (giving 2 which is not in {0, 1, 3, 6}) so nothing is done with 4. It is not possible to subtract 5 (6-5=1, which is in {0, 1, 3, 6}), so it is added, resulting in 11. - Matthew Malone, Jan 03 2020
For n>=1, a(n) is the maximum number of vertices (Moore bound) of a (1,1)-regular mixed graph with diameter n-1. - Miquel A. Fiol, Jun 24 2024
Repunits in the lazy Fibonacci representation (A104326), and which is the first row of array A372501. - A.H.M. Smeets, Jun 25 2025

Examples

			G.f. = x + 3*x^2 + 6*x^3 + 11*x^4 + 19*x^5 + 32*x^6 + 53*x^7 + 87*x^8 + ...
		

References

  • J. Riordan, An Introduction to Combinatorial Analysis, Wiley, 1958, p. 233.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Cf. A001611, A000071, A157725, A001911, A157726, A006327, A157727, A157728, A157729, A167616. [Added by N. J. A. Sloane, Jun 25 2010 in response to a comment from Aviezri S. Fraenkel]
Partial sums of A000045(n+1).
Right-hand column 3 of triangle A011794.
See also A165910.
Subsequence of A226538.
Column k=3 of A261019.

Programs

  • Haskell
    a001911 n = a001911_list !! n
    a001911_list = 0 : 1 : map (+ 2) (zipWith (+) a001911_list $ tail a001911_list)
    -- Reinhard Zumkeller, Jun 18 2013
    
  • Magma
    [(Fibonacci(n+3))-2: n in [0..85]]; // Vincenzo Librandi, Apr 23 2011
    
  • Maple
    a[0]:=0:a[1]:=1:for n from 2 to 50 do a[n]:=a[n-1]+a[n-2]+2 od: seq(a[n],n=0..50); # Miklos Kristof, Mar 09 2005
    A001911:=(1+z)/(z-1)/(z**2+z-1); # Simon Plouffe in his 1992 dissertation with another offset
    a:= n-> (Matrix([[0,-1,1]]). Matrix([[1,1,0], [1,0,0], [2,0,1]])^n)[1,1]: seq(a(n), n=0..50); # Alois P. Heinz, Jul 24 2008
  • Mathematica
    Table[Fibonacci[n+3] -2, {n,0,50}] (* Vladimir Joseph Stephan Orlovsky, Nov 19 2010 *)
    LinearRecurrence[{2,0,-1}, {0,1,3}, 40] (* Harvey P. Dale, Jun 06 2011 *)
    Fibonacci[Range[3,40]]-2 (* Harvey P. Dale, Jun 28 2015 *)
  • PARI
    a(n)=fibonacci(n+3)-2 \\ Charles R Greathouse IV, Mar 14 2012
    
  • SageMath
    [fibonacci(n+3)-2 for n in range(60)] # G. C. Greubel, Oct 21 2024

Formula

From Michael Somos, Jun 09 1999: (Start)
a(n) = A000045(n+3) - 2.
a(n) = a(n-1) + a(n-2) + 2, a(0) = 0, a(1) = 1. (End)
G.f.: x*(1+x)/((1-x)*(1-x-x^2)).
Sum of consecutive pairs of A000071 (partial sums of Fibonacci numbers). - Paul Barry, Apr 17 2004
a(n) = A101220(2, 1, n). - Ross La Haye, Jan 28 2005
a(n) = A108617(n+1, 2) = A108617(n+1, n-1) for n > 0. - Reinhard Zumkeller, Jun 12 2005
a(n) = term (1,1) in the 1 X 3 matrix [0,-1,1].[1,1,0; 1,0,0; 2,0,1]^n. - Alois P. Heinz, Jul 24 2008
a(0) = 0, a(1) = 1, a(2) = 3, a(n) = 2*a(n-1)-a(n-3). - Harvey P. Dale, Jun 06 2011
Eigensequence of an infinite lower triangular matrix with the natural numbers as the left border and (1, 0, 1, 0, ...) in all other columns. - Gary W. Adamson, Jan 30 2012
a(n) = (-2+(2^(-n)*((1-sqrt(5))^n*(-2+sqrt(5))+(1+sqrt(5))^n*(2+sqrt(5))))/sqrt(5)). - Colin Barker, May 12 2016
a(n) = A000032(6+n)-1 mod A000045(6+n). - Mario C. Enriquez, Apr 01 2017
E.g.f.: 2*exp(x/2)*(5*cosh(sqrt(5)*x/2) + 2*sqrt(5)*sinh(sqrt(5)*x/2))/5 - 2*exp(x). - Stefano Spezia, May 08 2022

Extensions

More terms and better description from Michael Somos

A192017 Triangle read by rows: T(n,k) is the number of unordered pairs of nodes at distance k in the Fibonacci tree of order n (1<=k<=n; entries in row n are the coefficients of the corresponding Wiener polynomial).

Original entry on oeis.org

1, 2, 1, 4, 4, 2, 7, 10, 9, 2, 12, 21, 27, 15, 3, 20, 40, 65, 57, 25, 3, 33, 72, 138, 163, 114, 37, 4, 54, 125, 270, 394, 378, 206, 54, 4, 88, 212, 500, 854, 1033, 796, 354, 74, 5, 143, 354, 891, 1716, 2479, 2463, 1571, 574, 100, 5, 232, 585, 1545, 3265, 5424, 6559, 5469, 2917, 896, 130, 6
Offset: 1

Views

Author

Emeric Deutsch, Jun 21 2011

Keywords

Comments

The Fibonacci trees f(k) of order k are defined as follows: 1. f(-1) and f(0) each consist of a single node. 2. For k>=1, to the root of f(k-1), taken as the root of f(k), we attach with a rightmost edge the tree f(k-2). See the Iyer & Reddy references. These trees are not the same as the Fibonacci trees in A180566.
Sum of entries in row n is A191797(n+2).

Examples

			T(2,2)=1 because in the Fibonacci tree of order 2, namely /\, there is only 1 pair of nodes at distance 2 (the two leaves).
Triangle starts:
   1;
   2,  1;
   4,  4,  2;
   7, 10,  9,  2;
  12, 21, 27, 15,  3;
  20, 40, 65, 57, 25,  3;
		

References

  • K. Viswanathan Iyer and K. R. Udaya Kumar Reddy, Wiener index of Binomial trees and Fibonacci trees, Int'l. J. Math. Engin. with Comp., Accepted for publication, Sept. 2009.

Crossrefs

Programs

  • Maple
    G := (1+t*z)/(1-z-t*z^2): Gser := simplify(series(G, z = 0, 15)): for n from 0 to 11 do r[n] := sort(coeff(Gser, z, n)) end do; w[0] := 0; w[1] := t; for n from 2 to 11 do w[n] := sort(expand(w[n-1]+w[n-2]+t*r[n-1]*r[n-2])) end do: for n from 1 to 11 do seq(coeff(w[n], t, j), j = 1 .. n) end do; # yields sequence in triangular form
  • Mathematica
    m = 11; Gser = Series[(1 + t*z)/(1 - z - t*z^2), {z, 0, m}]; Do[r[n] = Coefficient[Gser, z, n], {n, 0, m}]; w[0] = 0; w[1] = t; Do[w[n] = Expand[w[n - 1] + w[n - 2] + t*r[n - 1]*r[n - 2]] , {n, 2, m}]; Flatten[Table[Coefficient[w[n], t, j], {n, 1, m}, {j, 1, n}]] (* Jean-François Alcover, Sep 02 2011, after Maple *)

Formula

T(n,1) = A000071(n-2) (Fibonacci numbers minus 1).
Sum_{k=1..n} k*T(n,k) = A165910(n) (the Wiener indices).
The Wiener polynomial w(n,t) of the Fibonacci tree of order n satisfies the recurrence relation w(n,t) = w(n-1,t) + w(n-2,t) + t*r(n-1,t)*r(n-2,t), w(0,t)=w(1,t)=0, where r(n,t) is the generating polynomial of the nodes of the Fibonacci tree of order n with respect to the level of the nodes (for example, r(2,t) = 1 + 2t for the tree /\; see A011973 and the Maple program).
Showing 1-2 of 2 results.