A280308 Tribonacci numbers: a(n) = a(n-1) + a(n-2) + a(n-3) with a(0)=3, a(1)=4, a(2)=5.
3, 4, 5, 12, 21, 38, 71, 130, 239, 440, 809, 1488, 2737, 5034, 9259, 17030, 31323, 57612, 105965, 194900, 358477, 659342, 1212719, 2230538, 4102599, 7545856, 13878993, 25527448, 46952297, 86358738, 158838483, 292149518, 537346739, 988334740, 1817830997, 3343512476, 6149678213, 11311021686, 20804212375
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (1,1,1).
Programs
-
Mathematica
RecurrenceTable[{a[n] == a[n - 1] + a[n - 2] + a[n - 3], a[0] == 3, a[1] == 4, a[2] == 5}, a, {n, 38}] (* Michael De Vlieger, Dec 31 2016 *) LinearRecurrence[{1, 1, 1}, {3, 4, 5}, 40] (* Vincenzo Librandi, Jan 01 2017 *)
Formula
G.f.: (3+x-2*x^2)/(1-x-x^2-x^3). - Vincenzo Librandi, Jan 01 2017
Comments