login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
Search: tribonacci
Displaying 1-10 of 542 results found. page 1 2 3 4 5 6 7 8 9 10 ... 55
     Sort: relevance | references | number | modified | created      Format: long | short | data
A000073 Tribonacci numbers: a(n) = a(n-1) + a(n-2) + a(n-3) for n >= 3 with a(0) = a(1) = 0 and a(2) = 1.
(Formerly M1074 N0406)
+20
320
0, 0, 1, 1, 2, 4, 7, 13, 24, 44, 81, 149, 274, 504, 927, 1705, 3136, 5768, 10609, 19513, 35890, 66012, 121415, 223317, 410744, 755476, 1389537, 2555757, 4700770, 8646064, 15902591, 29249425, 53798080, 98950096, 181997601, 334745777, 615693474, 1132436852 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,5

COMMENTS

Also (for n > 1) number of ordered trees with n+1 edges and having all leaves at level three. Example: a(4)=2 because we have two ordered trees with 5 edges and having all leaves at level three: (i) one edge emanating from the root, at the end of which two paths of length two are hanging and (ii) one path of length two emanating from the root, at the end of which three edges are hanging. - Emeric Deutsch, Jan 03 2004

a(n) = number of compositions of n-2 with no part greater than 3. Example: a(5)=4 because we have 1+1+1 = 1+2 = 2+1 = 3. - Emeric Deutsch, Mar 10 2004

Let A denote the 3 X 3 matrix [0,0,1;1,1,1;0,1,0]. a(n) corresponds to both the (1,2) and (3,1) entries in A^n. - Paul Barry, Oct 15 2004

Number of permutations satisfying -k <= p(i)-i <= r, i=1..n-2, with k=1, r=2. - Vladimir Baltic, Jan 17 2005

Number of binary sequences of length n-3 that have no three consecutive 0's. Example: a(7)=13 because among the 16 binary sequences of length 4 only 0000, 0001 and 1000 have 3 consecutive 0's. - Emeric Deutsch, Apr 27 2006

Therefore, the complementary sequence to A050231 (n coin tosses with a run of three heads). a(n) = 2^(n-3) - A050231(n-3) - Toby Gottfried, Nov 21 2010

Convolved with the Padovan sequence = row sums of triangle A153462. - Gary W. Adamson, Dec 27 2008

For n > 1: row sums of the triangle in A157897. - Reinhard Zumkeller, Jun 25 2009

a(n+2) is the top left entry of the n-th power of any of the 3 X 3 matrices [1, 1, 1; 0, 0, 1; 1, 0, 0] or [1, 1, 0; 1, 0, 1; 1, 0, 0] or [1, 1, 1; 1, 0, 0; 0, 1, 0] or [1, 0, 1; 1, 0, 0; 1, 1, 0]. - R. J. Mathar, Feb 03 2014

a(n-1) is the top left entry of the n-th power of any of the 3 X 3 matrices [0, 0, 1; 1, 1, 1; 0, 1, 0], [0, 1, 0; 0, 1, 1; 1, 1, 0], [0, 0, 1; 1, 0, 1; 0, 1, 1] or [0, 1, 0; 0, 0, 1; 1, 1, 1]. - R. J. Mathar, Feb 03 2014

Also row sums of A082601 and of A082870. - Reinhard Zumkeller, Apr 13 2014

Least significant bits are given in A021913 (a(n) mod 2 = A021913(n)). - Andres Cicuttin, Apr 04 2016

The nonnegative powers of the tribonacci constant t = A058265 are t^n = a(n)*t^2 + (a(n-1) + a(n-2))*t + a(n-1)*1, for  n >= 0, with  a(-1) = 1 and a(-2) = -1. This follows from the recurrences derived from t^3 = t^2 + t + 1. See the example in A058265 for the first nonnegative powers. For the negative powers see A319200. - Wolfdieter Lang, Oct 23 2018

The term "tribonacci number" was coined by Mark Feinberg (1963), a 14-year-old student in the 9th grade of the Susquehanna Township Junior High School in Pennsylvania. He died in 1967 in a motorcycle accident. - Amiram Eldar, Apr 16 2021

REFERENCES

M. Agronomof, Sur une suite récurrente, Mathesis, Vol. 4 (1914), pp. 125-126.

A. T. Benjamin and J. J. Quinn, Proofs that really count: the art of combinatorial proof, M.A.A. 2003, p. 47, ex. 4.

S. R. Finch, Mathematical Constants, Cambridge, 2003, Section 1.2.2.

Silvia Heubach and Toufik Mansour, Combinatorics of Compositions and Words, CRC Press, 2010.

J. Riordan, An Introduction to Combinatorial Analysis, Princeton University Press, Princeton, NJ, 1978.

Raphael Schumacher, Explicit formulas for sums involving the squares of the first n Tribonacci numbers, Fib. Q., 58:3 (2020), 194-202.

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).

LINKS

T. D. Noe and Simone Sandri, Table of n, a(n) for n = 0..3000 (first 200 terms from T. D. Noe)

Marco Abrate, Stefano Barbero, Umberto Cerruti, and Nadir Murru, Colored compositions, Invert operator and elegant compositions with the "black tie", Discrete Math. 335 (2014), 1-7. MR3248794

Kunle Adegoke, Adenike Olatinwo, and Winning Oyekanmi, New Tribonacci Recurrence Relations and Addition Formulas, arXiv:1811.03663 [math.CO], 2018.

Said Amrouche and Hacène Belbachir, Unimodality and linear recurrences associated with rays in the Delannoy triangle, Turkish Journal of Mathematics (2019) Vol. 44, 118-130.

Pornpawee Anantakitpaisal and Kantaphon Kuhapatanakul, Reciprocal Sums of the Tribonacci Numbers, Journal of Integer Sequences, Vol. 19 (2016), #16.2.1.

George E. Andrews, Matthew Just, and Greg Simay, Anti-palindromic compositions, arXiv:2102.01613 [math.CO], 2021.

Joerg Arndt, Matters Computational (The Fxtbook), pp.307-309.

J. L. Arocha and B. Llano, The number of dominating k-sets of paths, cycles and wheels, arXiv:1601.01268 [math.CO], 2016.

Christos Athanasiadis, Jesús De Loera, and Zhenyang Zhang, Enumerative problems for arborescences and monotone paths on polytopes, arXiv:2002.00999 [math.CO], 2020.

Vladimir Baltic, On the number of certain types of strongly restricted permutations, Applicable Analysis and Discrete Mathematics Vol. 4, No. 1 (April 2010), 119-135.

Elena Barcucci, Antonio Bernini, Stefano Bilotta, and Renzo Pinzani, Non-overlapping matrices, arXiv:1601.07723 [cs.DM], 2016.

D. Birmajer, J. Gil and M. Weiner, Linear recurrence sequences and their convolutions via Bell polynomials, arXiv:1405.7727 [math.CO], 2014.

Daniel Birmajer, Juan B. Gil, and Michael D. Weiner, Linear recurrence sequences with indices in arithmetic progression and their sums, arXiv:1505.06339 [math.NT], 2015.

David Broadhurst, Multiple Landen values and the tribonacci numbers, arXiv:1504.05303 [hep-th], 2015.

Martin Burtscher, Igor Szczyrba, and Rafał Szczyrba, Analytic Representations of the n-anacci Constants and Generalizations Thereof, Journal of Integer Sequences, Vol. 18 (2015), Article 15.4.5.

P. J. Cameron, Sequences realized by oligomorphic permutation groups, J. Integ. Seqs. Vol. 3 (2000), #00.1.5.

L. Carlitz, R. Scoville and V. E. Hoggatt, Jr., Fibonacci representations of higher order, Fib. Quart., 10 (1972), 43-69.

Nataliya Chekhova, Pascal Hubert, and Ali Messaoudi, Propriétés combinatoires, ergodiques et arithmétiques de la substitution de Tribonacci, Journal de théorie des nombres de Bordeaux, 13(2) (2001), 371-394.

Fan R. K. Chung, Persi Diaconis, and Ron Graham, Permanental generating functions and sequential importance sampling, Stanford University (2018).

Curtis Cooper, S. Miller, P. Moses, M. Sahin, et al., On Identities Of Ruggles, Horadam, Howard, and Young, Preprint, 2016; Proceedings of the 17th International Conference on Fibonacci Numbers and Their Applications, Université de Caen-Normandie, Caen, France, June 26 to July 2, 2016.

Michael Dairyko, Samantha Tyner, Lara Pudwell, and Casey Wynn, Non-contiguous pattern avoidance in binary trees. Electron. J. Combin. 19(3) (2012), Paper 22, 21 pp., MR2967227.

Mahadi Ddamulira, Tribonacci numbers that are concatenations of two repdigits, hal-02547159, Mathematics [math] / Number Theory [math.NT], 2020.

F. Michel Dekking, Jeffrey Shallit, and N. J. A. Sloane, Queens in exile: non-attacking queens on infinite chess boards, Electronic J. Combin., 27(1) (2020), #P1.52.

Ömür Deveci, Zafer Adıgüzel, and Taha Doğan, On the Generalized Fibonacci-circulant-Hurwitz numbers, Notes on Number Theory and Discrete Mathematics (2020) Vol. 26, No. 1, 179-190.

G. P. B. Dresden and Z. Du, A Simplified Binet Formula for k-Generalized Fibonacci Numbers, J. Int. Seq. 17 (2014) # 14.4.7.

M. S. El Naschie, Statistical geometry of a Cantor discretum and semiconductors, Computers & Mathematics with Applications, Vol. 29 (Issue 12, June 1995), 103-110.

Nathaniel D. Emerson, A Family of Meta-Fibonacci Sequences Defined by Variable-Order Recursions, Journal of Integer Sequences, Vol. 9 (2006), Article 06.1.8.

Tim Evink and Paul Alexander Helminck, Tribonacci numbers and primes of the form p=x^2+11y^2, arXiv:1801.04605 [math.NT], 2018.

Vinicius Facó and D. Marques, Tribonacci Numbers and the Brocard-Ramanujan Equation, Journal of Integer Sequences, 19 (2016), #16.4.4.

M. Feinberg, Fibonacci-Tribonacci, Fib. Quart. 1(3) (1963), 71-74.

M. Feinberg, New slants, Fib. Quart. 2 (1964), 223-227.

Robert Frontczak, Sums of Tribonacci and Tribonacci-Lucas Numbers, International Journal of Mathematical Analysis, 12(1) (2018), 19-24.

Robert Frontczak, Convolutions for Generalized Tribonacci Numbers and Related Results, International Journal of Mathematical Analysis, 12(7) (2018), 307-324.

Taras Goy and Mark Shattuck, Determinant identities for Toeplitz-Hessenberg matrices with tribonacci number entries, Transactions on Combinatorics 9(3) (2020), 89-109. See also arXiv:2003.10660, [math.CO], 2020.

M. D. Hirschhorn, Coupled third-order recurrences, Fib. Quart., 44 (2006), 26-31.

F. T. Howard and Curtis Cooper, Some identities for r-Fibonacci numbers, Fibonacci Quart. 49 (2011), no. 3, 231-243.

INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 10

Nurettin Irmak and László Szalay, Tribonacci Numbers Close to the Sum 2^a+3^b+5^c, Math. Scand. 118(1) (2016), 27-32.

M. Janjic, Determinants and Recurrence Sequences, Journal of Integer Sequences, 2012, Article 12.3.5. - N. J. A. Sloane, Sep 16 2012

Günter Köhler, Generating functions of Fibonacci-like sequences and decimal expansion of some fractions, The Fibonacci Quarterly 23(1) (1985), 29-35 [a(n+2) = T_n on p. 35].

S. Kak, The Golden Mean and the Physics of Aesthetics, arXiv:physics/0411195 [physics.hist-ph], 2004.

Tamara Kogan, L. Sapir, A. Sapir, and A. Sapir, The Fibonacci family of iterative processes for solving nonlinear equations, Applied Numerical Mathematics 110 (2016), 148-158.

Takao Komatsu, Convolution identities for tribonacci-type numbers with arbitrary initial values, Palestine Journal of Mathematics, Vol. 8(2) (2019), 413-417.

T. Komatsu and V. Laohakosol, On the Sum of Reciprocals of Numbers Satisfying a Recurrence Relation of Order s, J. Int. Seq. 13 (2010), #10.5.8.

Vladimir Kruchinin, Composition of ordinary generating functions, arXiv:1009.2565 [math.CO], 2010.

Wolfdieter Lang, The Tribonacci and ABC Representations of Numbers are Equivalent, arXiv preprint arXiv:1810.09787 [math.NT], 2018.

Pin-Yen Lin, De Moivre type identities for the Tribonacci numbers, The Fibonacci Quarterly, 26(2) (1988), 131-134.

Steven Linton, James Propp, Tom Roby, and Julian West, Equivalence Classes of Permutations under Various Relations Generated by Constrained Transpositions, Journal of Integer Sequences, Vol. 15 (2012), #12.9.1.

Sepideh Maleki and Martin Burtscher, Automatic Hierarchical Parallelization of Linear Recurrences, Proceedings of the 23rd International Conference on Architectural Support for Programming Languages and Operating Systems, ACM, 2018.

T. Mansour, Permutations avoiding a set of patterns from S_3 and a pattern from S_4, arXiv:math/9909019 [math.CO], 1999.

T. Mansour and M. Shattuck, Polynomials whose coefficients are generalized Tribonacci numbers, Applied Mathematics and Computation, Volume 219(15) (2013), 8366-8374.

T. Mansour and M. Shattuck, A monotonicity property for generalized Fibonacci sequences, arXiv:1410.6943 [math.CO], 2014.

O. Martin, A. M. Odlyzko and S. Wolfram, Algebraic properties of cellular automata, Comm. Math. Physics, 93 (1984), pp. 219-258, Reprinted in Theory and Applications of Cellular Automata, S. Wolfram, Ed., World Scientific, 1986, pp. 51-90 and in Cellular Automata and Complexity: Collected Papers of Stephen Wolfram, Addison-Wesley, 1994, pp. 71-113. See Eq. 5.5b.

László Németh, The trinomial transform triangle, J. Int. Seqs., Vol. 21 (2018), Article 18.7.3. Also arXiv:1807.07109 [math.NT], 2018.

Tony D. Noe and Jonathan Vos Post, Primes in Fibonacci n-step and Lucas n-step Sequences, J. of Integer Sequences, 8 (2005), Article 05.4.4.

Simon Plouffe, Approximations de séries génératrices et quelques conjectures, Dissertation, Université du Québec à Montréal, 1992.

Simon Plouffe, 1031 Generating Functions, Appendix to Thesis, Montreal, 1992.

János Podani, Ádám Kun and András Szilágyi, How fast does Darwin’s elephant population grow?, Journal of the History of Biology, Vol. 51, No. 2 (2018), pp. 259-281.

H. Prodinger, Counting Palindromes According to r-Runs of Ones Using Generating Functions, J. Int. Seq. 17 (2014) # 14.6.2, odd length middle 0 with r=2.

L. Pudwell, Pattern avoidance in trees (slides from a talk, mentions many sequences), 2012. - From N. J. A. Sloane, Jan 03 2013

J. L. Ramirez and V. F. Sirvent, Incomplete Tribonacci Numbers and Polynomials, Journal of Integer Sequences, 17 (2014), #14.4.2.

J. L. Ramírez and V. F. Sirvent, A Generalization of the k-Bonacci Sequence from Riordan Arrays, The Electronic Journal of Combinatorics, 22(1) (2015), #P1.38.

Michel Rigo, Relations on words, arXiv:1602.03364 [cs.FL], 2016.

A. G. Shannon, Tribonacci numbers and Pascal's pyramid, part b, Fibonacci Quart. 15(3) (1977), 268-275.

M. Shattuck, Combinatorial identities for incomplete tribonacci polynomials, arXiv:1406.2755 [math.CO], 2014.

W. R. Spickerman, Binet's formula for the tribonacci sequence, The Fibonacci Quarterly 20(2) (1982), 118-120.

M. E. Waddill and L. Sacks, Another generalized Fibonacci sequence, Fib. Quart., 5 (1967), 209-222.

Kai Wang, Identities for generalized enneanacci numbers, Generalized Fibonacci Sequences (2020).

Eric Weisstein's World of Mathematics, Fibonacci n-Step Number.

Eric Weisstein's World of Mathematics, Tribonacci Number.

Wikipedia, Generalizations of Fibonacci numbers.

Ce Xu and Jianqiang Zhao, Alternating Multiple T-Values: Weighted Sums, Duality, and Dimension Conjecture, arXiv:2009.10774 [math.NT], 2020.

Shujie Zhou and Li Chen, Tribonacci Numbers and Some Related Interesting Identities, Symmetry, 11(10) (2019), 1195.

Index entries for linear recurrences with constant coefficients, signature (1,1,1).

FORMULA

G.f.: x^2/(1 - x - x^2 - x^3).

G.f.: x^2 / (1 - x / (1 - x / (1 + x^2 / (1 + x)))). - Michael Somos, May 12 2012

G.f.: Sum_{n >= 0} x^(n+2) *[ Product_{k = 1..n} (k + k*x + x^2)/(1 + k*x + k*x^2) ] = x^2 + x^3 + 2*x^4 + 4*x^5 + 7*x^6 + 13*x^7 + ... may be proved by the method of telescoping sums. - Peter Bala, Jan 04 2015

a(n+1)/a(n) -> A058265.  a(n-1)/a(n) -> A192918.

a(n) = central term in M^n * [1 0 0] where M = the 3X3 matrix [0 1 0 / 0 0 1 / 1 1 1]. (M^n * [1 0 0] = [a(n-1) a(n) a(n+1)].) a(n)/a(n-1) tends to the tribonacci constant, 1.839286755... = A058265, an eigenvalue of M and a root of x^3 - x^2 - x - 1 = 0. - Gary W. Adamson, Dec 17 2004

a(n+2) = Sum_{k=0..n} T(n-k, k), where T(n, k) = trinomial coefficients (A027907). - Paul Barry, Feb 15 2005

A001590(n) = a(n+1)-a(n); A001590(n) = a(n-1)+a(n-2) for n>1; a(n) = (A000213(n+1)-A000213(n))/2; A000213(n-1) = a(n+2)-a(n) for n>0. - Reinhard Zumkeller, May 22 2006

Let C = the tribonacci constant, 1.83928675...; then C^n = a(n)*(1/C) + a(n+1)*(1/C + 1/C^2) + a(n+2)*(1/C + 1/C^2 + 1/C^3). Example: C^4 = 11.444...= 2*(1/C) + 4*(1/C + 1/C^2) + 7*(1/C + 1/C^2 + 1/C^3). - Gary W. Adamson, Nov 05 2006

a(n) = j*C^n + k*r1^n + l*r2^n where C is the tribonacci constant (C = 1.8392867552...), real root of x^3-x^2-x-1=0, and r1 and r2 are the two other roots (which are complex), r1 = m+pI and r2 = m-pI, where m = (1-C)/2 (m = -0.4196433776...) and p = ((3*C-5)*(C+1)/4)^(1/2) (p=0.6062907292...), and where j = 1/((C-m)^2+p^2) ( = 0.1828035330...), k = a+bI, and l = a-bI, where a = -j/2 (a = -0.0914017665...) and b = (C-m)/(2*p*((C-m)^2+p^2)(b = 0.3405465308...). - Philippe LALLOUET (philip.lallouet(AT)wanadoo.fr), Jun 23 2007

a(n+1) = 3*c*((1/3)*(a+b+1))^n/(c^2-2*c+4) where a=(19+3*sqrt(33))^(1/3), b=(19-3*sqrt(33))^(1/3), c=(586+102*sqrt(33))^(1/3). Round to the nearest integer. - Al Hakanson (hawkuu(AT)gmail.com), Feb 02 2009

a(n) = 3*((a+b+1)/3)^n/(a^2+b^2+4) where a=(19+3*sqrt(33))^(1/3), b=(19-3*sqrt(33))^(1/3). Round to the nearest integer. - Anton Nikonov

Another form of the g.f.: f(z) = (z^2-z^3)/(1-2*z+z^4). Then we obtain a(n) as a sum: a(n) = Sum_{i=0..floor((n-2)/4)} ((-1)^i*binomial(n-2-3*i,i)*2^(n-2-4*i)) - Sum_{i=0..floor((n-3)/4)} ((-1)^i*binomial(n-3-3*i,i)*2^(n-3-4*i)) with natural convention: Sum_{i=m..n} alpha(i) = 0 for m > n. - Richard Choulet, Feb 22 2010

a(n) = Sum_{k=1..n} Sum_{i=k..n, mod(4*k-i,3)=0} binomial(k,(4*k-i)/3)*(-1)^((i-k)/3)*binomial(n-i+k-1,k-1)). - Vladimir Kruchinin, Aug 18 2010

a(n) = 2*a(n-2) + 2*a(n-3) + a(n-4). - Gary Detlefs, Sep 13 2010

Sum_{k=0..2*n} a(k+b)*A027907(n,k) = a(3*n+b), b >= 0 (see A099464, A074581).

a(n) = 2*a(n-1) - a(n-4), with a(0)=a(1)=0, a(2)=a(3)=1. - Vincenzo Librandi, Dec 20 2010

Starting (1, 2, 4, 7, ...) is the INVERT transform of (1, 1, 1, 0, 0, 0, ...). - Gary W. Adamson, May 13 2013

G.f.: Q(0)*x^2/2, where Q(k) = 1 + 1/(1 - x*(4*k+1 + x + x^2)/( x*(4*k+3 + x + x^2) + 1/Q(k+1) )); (continued fraction). - Sergei N. Gladkovskii, Sep 09 2013

a(n+2) = Sum_{j=0..floor(n/2)} Sum_{k=0..j} binomial(n-2*j,k)*binomial(j,k)*2^k. - Tony Foster III, Sep 08 2017

Sum_{k=0..n} (n-k)*a(k) = (a(n+2)+a(n+1)-n-1)/2. - Yichen Wang, Aug 20 2020

a(n) = A008937(n-1) - A008937(n-2) for n >= 2. - Peter Luschny, Aug 20 2020

From Yichen Wang, Aug 27 2020: (Start)

Sum_{k=0..n} a(k) = (a(n+2)+a(n)-1)/2.

Sum_{k=0..n} k*a(k) = ((n-1)*a(n+2)-a(n+1)+n*a(n)+1)/2. (End)

EXAMPLE

G.f. = x^2 + x^3 + 2*x^4 + 4*x^5 + 7*x^6 + 13*x^7 + 24*x^8 + 44*x^9 + 81*x^10 + ...

MAPLE

# second Maple program:

a:= n-> (<<0|1|0>, <0|0|1>, <1|1|1>>^n)[1, 3]:

seq(a(n), n=0..40);  # Alois P. Heinz, Dec 19 2016

A000073:=proc(n) option remember; if n <= 1 then 0 elif n=2 then 1 else procname(n-1)+procname(n-2)+procname(n-3); fi; end; # N. J. A. Sloane, Aug 06 2018

MATHEMATICA

CoefficientList[Series[x^2/(1 - x - x^2 - x^3), {x, 0, 50}], x]

a[0] = a[1] = 0; a[2] = 1; a[n_] := a[n] = a[n - 1] + a[n - 2] + a[n - 3]; Array[a, 36, 0] (* Robert G. Wilson v, Nov 07 2010 *)

LinearRecurrence[{1, 1, 1}, {0, 0, 1}, 60] (* Vladimir Joseph Stephan Orlovsky, May 24 2011 *)

a[n_] := SeriesCoefficient[If[ n < 0, x/(1 + x + x^2 - x^3), x^2/(1 - x - x^2 - x^3)], {x, 0, Abs @ n}] (* Michael Somos, Jun 01 2013 *)

Table[-RootSum[-1 - # - #^2 + #^3 &, -#^n - 9 #^(n + 1) + 4 #^(n + 2) &]/22, {n, 0, 20}] (* Eric W. Weisstein, Nov 09 2017 *)

PROG

(PARI) {a(n) = polcoeff( if( n<0, x / ( 1 + x + x^2 - x^3), x^2 / ( 1 - x - x^2 - x^3) ) + x * O(x^abs(n)), abs(n))}; /* Michael Somos, Sep 03 2007 */

(PARI) x='x+O('x^99); concat([0, 0], Vec(x^2/(1-x-x^2-x^3))) \\ Altug Alkan, Apr 04 2016

(PARI) a(n)=([0, 1, 0; 0, 0, 1; 1, 1, 1]^n)[1, 3] \\ Charles R Greathouse IV, Apr 18 2016, simplified by M. F. Hasler, Apr 18 2018

(Maxima) a(n):=sum(sum(if mod(4*k-i, 3)>0 then 0 else binomial(k, (4*k-i)/3)*(-1)^((i-k)/3)*binomial(n-i+k-1, k-1), i, k, n), k, 1, n); \\ Vladimir Kruchinin, Aug 18 2010

(Maxima) A000073[0]:0$

A000073[1]:0$

A000073[2]:1$

A000073[n]:=A000073[n-1]+A000073[n-2]+A000073[n-3]$

  makelist(A000073[n], n, 0, 40);  /* Emanuele Munarini, Mar 01 2011 */

(Haskell)

a000073 n = a000073_list !! n

a000073_list = 0 : 0 : 1 : zipWith (+) a000073_list (tail

                          (zipWith (+) a000073_list $ tail a000073_list))

-- Reinhard Zumkeller, Dec 12 2011

(Python)

def a(n, adict={0:0, 1:0, 2:1}):

    if n in adict:

        return adict[n]

    adict[n]=a(n-1)+a(n-2)+a(n-3)

    return adict[n] # David Nacin, Mar 07 2012

(MAGMA) [n le 3 select Floor(n/3) else Self(n-1)+Self(n-2)+Self(n-3): n in [1..70]]; // Vincenzo Librandi, Jan 29 2016

(GAP) a:=[0, 0, 1];; for n in [4..40] do a[n]:=a[n-1]+a[n-2]+a[n-3]; od; a; # Muniru A Asiru, Oct 24 2018

CROSSREFS

Cf. A000045, A000078, A000213, A000931, A001590 (first differences, also a(n)+a(n+1)), A001644, A008288 (tribonacci triangle), A008937 (partial sums), A021913, A027024, A027083, A027084, A046738 (Pisano periods), A050231, A054668, A062544, A063401, A077902, A081172, A089068, A118390, A145027, A153462, A230216.

A057597 is this sequence run backwards: A057597(n) = a(1-n).

Row 3 of arrays A048887 and A092921 (k-generalized Fibonacci numbers).

Partitions: A240844 and A117546.

Cf. also A092836 (subsequence of primes), A299399 = A092835 + 1 (indices of primes).

KEYWORD

nonn,easy,nice,changed

AUTHOR

N. J. A. Sloane

EXTENSIONS

Minor edits by M. F. Hasler, Apr 18 2018

Deleted certain dangerous or potentially dangerous links. - N. J. A. Sloane, Jan 30 2021

STATUS

approved

A000213 Tribonacci numbers: a(n) = a(n-1) + a(n-2) + a(n-3) with a(0)=a(1)=a(2)=1.
(Formerly M2454 N0975)
+20
133
1, 1, 1, 3, 5, 9, 17, 31, 57, 105, 193, 355, 653, 1201, 2209, 4063, 7473, 13745, 25281, 46499, 85525, 157305, 289329, 532159, 978793, 1800281, 3311233, 6090307, 11201821, 20603361, 37895489, 69700671, 128199521, 235795681, 433695873, 797691075, 1467182629 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,4

COMMENTS

Number of (n-1)-bit binary sequences with each one adjacent to a zero. - R. H. Hardin, Dec 24 2007

The binomial transform is A099216. The inverse binomial transform is (-1)^n*A124395(n). - R. J. Mathar, Aug 19 2008

Equals INVERT transform of (1, 0, 2, 0, 2, 0, 2, ...). a(6) = 17 = (1, 1, 1, 3, 5, 9) dot (0, 2, 0, 2, 0, 1) = (0 + 2 + 0 + 6 + 0 + 9) = 17. - Gary W. Adamson, Apr 27 2009

From John M. Campbell, May 16 2011: (Start)

Equals the number of tilings of a 2 X n grid using singletons and "S-shaped quadrominos" (i.e., shapes of the form Polygon[{{0, 0}, {2, 0}, {2, 1}, {3, 1}, {3, 2}, {1, 2}, {1, 1}, {0, 1}}]).

Also equals the number of tilings of a 2 X n grid using singletons and "T-shaped quadrominos" (i.e., shapes of the form Polygon[{{0, 0}, {3, 0}, {3, 1}, {2, 1}, {2, 2}, {1, 2}, {1, 1}, {0, 1}}]). (End)

Pisano period lengths: 1, 1, 13, 4, 31, 13, 48, 8, 39, 31, 110, 52, 168, 48, 403, 16, 96, 39, 360, 124, ... (differs from A106293). - R. J. Mathar, Aug 10 2012

a(n) is the number of compositions of n with no consecutive 1's. a(4) = 5 because we have: 4, 3+1, 1+3, 2+2, 1+2+1. Cf. A239791, A003242. - Geoffrey Critzer, Mar 27 2014

a(n+2) is the number of words of length n over alphabet {1,2,3} without having {11,12,22,23} as substrings. - Ran Pan, Sep 16 2015

Satisfies Benford's law [see A186190]. - N. J. A. Sloane, Feb 09 2017

a(n) is also the number of dominating sets on the (n-1)-path graph. - Eric W. Weisstein, Mar 31 2017

a(n) is also the number of maximal irredundant sets and minimal dominating sets in the (2n-3)-triangular snake graph. - Eric W. Weisstein, Jun 09 2019

REFERENCES

Kenneth Edwards, Michael A. Allen, A new combinatorial interpretation of the Fibonacci numbers squared, Part II, Fib. Q., 58:2 (2020), 169-177.

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).

LINKS

Indranil Ghosh, Table of n, a(n) for n = 0..3772 (terms 0..200 from T. D. Noe)

Joerg Arndt, Matters Computational (The Fxtbook), p.312

J.-L. Baril, Avoiding patterns in irreducible permutations, Discrete Mathematics and Theoretical Computer Science,  Vol 17, No 3 (2016). See Table 4.

B. G. Baumgart, Letter to the editor Part 1 Part 2 Part 3, Fib. Quart. 2 (1964), 260, 302.

Martin Burtscher, Igor Szczyrba, Rafał Szczyrba, Analytic Representations of the n-anacci Constants and Generalizations Thereof, Journal of Integer Sequences, Vol. 18 (2015), Article 15.4.5.

Kenneth Edwards, Michael A. Allen, A new combinatorial interpretation of the Fibonacci numbers squared, arXiv:1907.06517 [math.CO], 2019.

M. Feinberg, Fibonacci-Tribonacci, Fib. Quart. 1(#3) (1963), 71-74.

Nick Hobson, Python program for this sequence

Joanna Jaszunska and Jan Okninski, Structure of Chinese algebras, Journal of Algebra, Volume 346, Issue 1, 15 November 2011, Pages 31-81.

Simon Plouffe, Approximations de séries génératrices et quelques conjectures, Dissertation, Université du Québec à Montréal, 1992.

Simon Plouffe, 1031 Generating Functions, Appendix to Thesis, Montreal, 1992

I. Tasoulas, K. Manes, A. Sapounakis, P. Tsikouras, Chains with Small Intervals in the Lattice of Binary Paths, arXiv:1911.10883 [math.CO], 2019.

Eric Weisstein's World of Mathematics, Dominating Set

Eric Weisstein's World of Mathematics, Irredundant Set

Eric Weisstein's World of Mathematics, Minimal Dominating Set

Eric Weisstein's World of Mathematics, Path Graph

Eric Weisstein's World of Mathematics, Triangular Snake Graph

Eric Weisstein's World of Mathematics, Tribonacci Number

Index entries for linear recurrences with constant coefficients, signature (1,1,1).

Index entries for sequences related to Benford's law

FORMULA

G.f.: (1-x)*(1+x)/(1-x-x^2-x^3). - Ralf Stephan, Feb 11 2004

G.f.: 1 / (1 - x / (1 - 2*x^2 / (1 + x^2))). - Michael Somos, May 12 2012

a(n) = rightmost term of M^n * [1 1 1], where M is the 3 X 3 matrix [1 1 1 / 1 0 0 / 0 1 0]. M^n * [1 1 1] = [a(n+2) a(n+1) a(n)]. a(n)/a(n-1) tends to the tribonacci constant, 1.839286755...; an eigenvalue of M and a root of x^3 - x^2 - x - 1 = 0. - Gary W. Adamson, Dec 17 2004

a(n) = A001590(n+3) - A001590(n+2); a(n+1) - a(n) = 2*A000073(n); a(n) = A000073(n+3) - A000073(n+1). - Reinhard Zumkeller, May 22 2006

a(n) = A001590(n) + A001590(n+1). - Philippe Deléham, Sep 25 2006

a(n) ~ (F - 1) * T^n, where F = A086254 and T = A058265. - Charles R Greathouse IV, Nov 09 2008

a(n) = 2*a(n-1) - a(n-4), n > 3. - Gary Detlefs, Sep 13 2010

a(n) = Sum_{m=0..n/2} Sum_{i=0..m} binomial(n-2*m+1,m-i)*binomial(n-2*m+i, n-2*m). - Vladimir Kruchinin, Dec 17 2011

a(n) = 2*A008937(n-2) + 1 for n > 1. - Reinhard Zumkeller, Apr 07 2012

G.f.: 1+x/(U(0) - x) where U(k) = 1 - x^2/(1 - 1/(1 + 1/U(k+1))); (continued fraction, 3-step). - Sergei N. Gladkovskii, Nov 16 2012

G.f.: 1 + x + x^2/(G(0)-x) where G(k) = 1 - x*(2*k+1)/(1 - 1/(1 + (2*k+1)/G(k+1))); (continued fraction, 3-step). - Sergei N. Gladkovskii, Nov 17 2012

G.f.: (1+x)*(1-x)*(1 + x*(G(0)-1)/(x+1)) where G(k) =  1 + (1+x+x^2)/(1-x/(x+1/G(k+1) )); (continued fraction). - Sergei N. Gladkovskii, Jan 26 2013

G.f.: 1/(1+x-G(0)), where G(k)= 1 - 1/(1 - x/(x - 1/(1 + 1/(1 - x/(x + 1/G(k+1)))))); (continued fraction). - Sergei N. Gladkovskii, Jun 20 2013

a(n) = (-1)^n * A180735(-1-n) for all n in Z. - Michael Somos, Aug 15 2015

EXAMPLE

G.f. = 1 + x + x^2 + 3*x^3 + 5*x^4 + 9*x^5+ 17*x^6 + 31*x^7 + 57*x^8 + ...

MAPLE

K:=(1-z^2)/(1-z-z^2-z^3): Kser:=series(K, z=0, 45): seq((coeff(Kser, z, n)), n= 0..34); # Zerinvary Lajos, Nov 08 2007

A000213:=(z-1)*(1+z)/(-1+z+z**2+z**3); # Simon Plouffe in his 1992 dissertation

MATHEMATICA

LinearRecurrence[{1, 1, 1}, {1, 1, 1}, 45] (* Harvey P. Dale, May 23 2011 *)

Table[RootSum[-1 - # - #^2 + #^3 &, 2 #^n - 4 #^(n + 1) + 3 #^(n + 2) &]/11, {n, 0, 45}] (* Eric W. Weisstein, Apr 10 2018 *)

CoefficientList[Series[(1-x)(1+x)/(1-x-x^2-x^3), {x, 0, 45}], x] (* Eric W. Weisstein, Apr 10 2018 *)

PROG

(PARI) a(n)=tn=[1, 1, 1; 1, 0, 0; 0, 1, 0]^n; tn[3, 1]+tn[3, 2]+tn[3, 3] \\ Charles R Greathouse IV, Feb 18 2011

(Maxima) a(n):=sum(sum(binomial(n-2*m+1, m-i)*binomial(n-2*m+i, n-2*m), i, 0, m), m, 0, (n)/2); /* Vladimir Kruchinin, Dec 17 2011 */

(Haskell)

a000213 n = a000213_list !! n

a000213_list = 1 : 1 : 1 : zipWith (+) a000213_list

   (tail $ zipWith (+) a000213_list (tail a000213_list))

-- Reinhard Zumkeller, Apr 07 2012

(MAGMA) I:=[1, 1, 1]; [n le 3 select I[n] else Self(n-1) + Self(n-2) + Self(n-3): n in [1..45]]; // G. C. Greubel, Jun 09 2019

(Sage) ((1-x^2)/(1-x-x^2-x^3)).series(x, 45).coefficients(x, sparse=False) # G. C. Greubel, Jun 09 2019

(GAP) a:=[1, 1, 1];; for n in [4..45] do a[n]:=a[n-1]+a[n-2]+a[n-3]; od; a; # G. C. Greubel, Jun 09 2019

CROSSREFS

Cf. A000073, A000288, A000322, A000383, A046735, A060455, A180735, A186190.

KEYWORD

nonn,easy,nice

AUTHOR

N. J. A. Sloane

STATUS

approved

A001590 Tribonacci numbers: a(n) = a(n-1) + a(n-2) + a(n-3) with a(0)=0, a(1)=1, a(2)=0.
(Formerly M0784 N0296)
+20
121
0, 1, 0, 1, 2, 3, 6, 11, 20, 37, 68, 125, 230, 423, 778, 1431, 2632, 4841, 8904, 16377, 30122, 55403, 101902, 187427, 344732, 634061, 1166220, 2145013, 3945294, 7256527, 13346834, 24548655, 45152016, 83047505, 152748176, 280947697, 516743378, 950439251 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,5

COMMENTS

Dimensions of the homogeneous components of the higher order peak algebra associated to cubic roots of unity (Hilbert series = 1 + 1*t + 2*t^2 + 3*t^3 + 6*t^4 + 11*t^5 ...). - Jean-Yves Thibon (jyt(AT)univ-mlv.fr), Oct 22 2006

Starting with offset 3: (1, 2, 3, 6, 11, 10, 37, ...) = row sums of triangle A145579. - Gary W. Adamson, Oct 13 2008

Starting (1, 2, 3, 6, 11, ...) = INVERT transform of the periodic sequence (1, 1, 0, 1, 1, 0, 1, 1, 0, ...). - Gary W. Adamson, May 04 2009

The comment of May 04 2009 is equivalent to: The numbers of ordered compositions of n using integers that are not multiples of 3 is equal to (1, 2, 3, 6, 11, ...) for n = (1, 2, 3, ...). - Gary W. Adamson, May 13 2013

Primes in the sequence are 2, 3, 11, 37, 634061, 7256527, 1424681173049, ... in A231574. - R. J. Mathar, Aug 09 2012

Pisano period lengths: 1, 2, 13, 8, 31, 26, 48, 16, 39, 62,110,104,168, 48,403, 32, 96, 78, 360, 248, ... . - R. J. Mathar, Aug 10 2012

a(n+1) is the top left entry of the n-th power of any of 3 X 3 matrices [0, 1, 0; 1, 1, 1; 1, 0, 0], [0, 1, 1; 1, 1, 0; 0, 1, 0], [0, 1, 1; 0, 0, 1; 1, 0, 1] or [0, 0, 1; 1, 0, 0; 1, 1, 1]. - R. J. Mathar, Feb 03 2014

a(n+3) equals the number of n-length binary words avoiding runs of zeros of lengths 3i+2, (i=0,1,2,...). - Milan Janjic, Feb 26 2015

Sums of pairs of successive terms of A000073. - N. J. A. Sloane, Oct 30 2016

The power Q^n, for n >= 0, of the tribonacci Q-matrix Q = matrix([1, 1, 1], [1, 0, 0], [0, 1, 0]) is, by the Cayley-Hamilton theorem, Q^n = matrix([a(n+2), a(n+1) + a(n), a(n+1)], [a(n+1), a(n) + a(n-1), a(n)], [a(n), a(n-1) + a(n-2), a(n-1)], with a(-2) = -1 and a(-1) = 1. One can use a(n) = a(n-1) + a(n-2) + a(n-3) in order to obtain a(-1) and a(-2). - Wolfdieter Lang, Aug 13 2018

a(n+2) is the number of entries n, for n>=1, in the sequence {A278038(k)}_{k>=1} (without A278038(0) = 1). - Wolfdieter Lang, Sep 11 2018

In terms of the tribonacci numbers T(n) = A000073(n) the nonnegative powers of the Q-matrix (from the Aug 13 2018 comment) are Q^n = T(n)*Q^2 + (T(n-1) + T(n-2))*Q + T(n-1)*1_3, for n >= 0, with T(-1) = 1, T(-2) = -1. This is equivalent to the powers t^n of the tribonacci constant t = A058255 (or also for powers of the complex solutions). - Wolfdieter Lang, Oct 24 2018

REFERENCES

Kenneth Edwards, Michael A. Allen, A new combinatorial interpretation of the Fibonacci numbers squared, Part II, Fib. Q., 58:2 (2020), 169-177.

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).

LINKS

T. D. Noe, Table of n, a(n) for n = 0..200

Barry Balof, Restricted tilings and bijections, J. Integer Seq. 15 (2012), no. 2, Article 12.2.3, 17 pp.

Matthias Beck, Neville Robbins, Variations on a Generatingfunctional Theme: Enumerating Compositions with Parts Avoiding an Arithmetic Sequence, arXiv:1403.0665 [math.NT], 2014.

Martin Burtscher, Igor Szczyrba, Rafał Szczyrba, Analytic Representations of the n-anacci Constants and Generalizations Thereof, Journal of Integer Sequences, Vol. 18 (2015), Article 15.4.5.

M. Feinberg, Fibonacci-Tribonacci, Fib. Quart. 1(3) (1963), 71-74.

M. Feinberg, New slants, Fib. Quart. 2 (1964), 223-227.

W. Florek, A class of generalized Tribonacci sequences applied to counting problems, Appl. Math. Comput., 338 (2018), 809-821.

P. Hadjicostas, Cyclic Compositions of a Positive Integer with Parts Avoiding an Arithmetic Sequence, Journal of Integer Sequences, 19 (2016), Article 16.8.2.

INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 401

Milan Janjic, Binomial Coefficients and Enumeration of Restricted Words, Journal of Integer Sequences, 2016, Vol 19, #16.7.3.

Tamara Kogan, L. Sapir, A. Sapir, A. Sapir, The Fibonacci family of iterative processes for solving nonlinear equations, Applied Numerical Mathematics 110 (2016) 148-158.

D. Krob and J.-Y. Thibon, Higher order peak algebras, arXiv:math/0411407 [math.CO], 2004.

Wolfdieter Lang, The Tribonacci and ABC Representations of Numbers are Equivalent, arXiv preprint arXiv:1810.09787 [math.NT], 2018.

Sepideh Maleki, Martin Burtscher, Automatic Hierarchical Parallelization of Linear Recurrences, Proceedings of the 23rd International Conference on Architectural Support for Programming Languages and Operating Systems, ACM, 2018.

M. A. Nyblom, Counting Palindromic Binary Strings Without r-Runs of Ones, J. Int. Seq. 16 (2013) #13.8.7.

H. Prodinger, Counting Palindromes According to r-Runs of Ones Using Generating Functions, J. Int. Seq. 17 (2014) # 14.6.2, even length, r=2.

Neville Robbins, On Tribonacci Numbers and 3-Regular Compositions, Fibonacci Quart. 52 (2014), no. 1, 16-19. See Adamson's comments.

Bo Tan and Zhi-Ying Wen, Some properties of the Tribonacci sequence, European Journal of Combinatorics, 28 (2007) 1703-1719.

M. E. Waddill and L. Sacks, Another generalized Fibonacci sequence, Fib. Quart., 5 (1967), 209-222.

Eric Weisstein's World of Mathematics, Tribonacci Number

Index entries for linear recurrences with constant coefficients, signature (1,1,1).

FORMULA

G.f.: x*(1-x)/(1-x-x^2-x^3).

Limit a(n)/a(n-1) = t where t is the real solution of t^3 = 1 + t + t^2, t = A058265 = 1.839286755... . If T(n) = A000073(n) then t^n  = T(n-1) + a(n)*t + T(n)*t^2, for n >= 0, with T(-1) = 1.

a(3*n) = Sum_{k+l+m=n} (n!/k!l!m!)*a(l+2*m). Example: a(12)=a(8)+4a(7)+10a(6)+16a(5)+19a(4)+16a(3)+10a(2)+4a(1)+a(0) The coefficients are the trinomial coefficients. T(n) and T(n-1) also satisfy this equation. (T(-1)=1)

From Reinhard Zumkeller, May 22 2006: (Start)

a(n) = A000073(n+1)-A000073(n);

a(n) = A000073(n-1)+A000073(n-2) for n>1;

A000213(n-2) = a(n+1)-a(n) for n>1. (End)

a(n) + a(n+1) = A000213(n). - Philippe Deléham, Sep 25 2006

If p[1]=0, p[i]=2, (i>1), and if A is Hessenberg matrix of order n defined by: A[i,j]=p[j-i+1], (i<=j), A[i,j]=-1, (i=j+1), and A[i,j]=0 otherwise. Then, for n>=1, a(n+1)=det A. - Milan Janjic, May 02 2010

For n>=4, a(n)=2*a(n-1)-a(n-4). - Bob Selcoe, Feb 18 2014

a(-1-n) = -A078046(n). - Michael Somos, Jun 01 2014

EXAMPLE

a(12)=a(11)+a(10)+a(9): 230=125+68+37.

G.f. = x + x^3 + 2*x^4 + 3*x^5 + 6*x^6 + 11*x^7 + 20*x^8 + 37*x^9 + 68*x^10 + ...

MAPLE

seq(coeff(series(x*(1-x)/(1-x-x^2-x^3), x, n+1), x, n), n = 0 .. 40); # Muniru A Asiru, Oct 24 2018

MATHEMATICA

LinearRecurrence[{1, 1, 1}, {0, 1, 0}, 50] (* Vladimir Joseph Stephan Orlovsky, Jan 28 2012 *)

RecurrenceTable[{a[0]==0, a[1]==1, a[2]==0, a[n]==a[n-1]+a[n-2]+a[n-3]}, a, {n, 40}] (* Vincenzo Librandi, Apr 19 2018 *)

PROG

(PARI) a(n)=([0, 1, 0; 0, 0, 1; 1, 1, 1]^n*[0; 1; 0])[1, 1] \\ Charles R Greathouse IV, Jul 28 2015

(Sage)

def A001590():

    W = [0, 1, 0]

    while True:

        yield W[0]

        W.append(sum(W))

        W.pop(0)

a = A001590(); [next(a) for _ in range(38)]  # Peter Luschny, Sep 12 2016

(MAGMA) I:=[0, 1, 0]; [n le 3 select I[n]  else Self(n-1)+Self(n-2)+Self(n-3): n in [1..40]]; // Vincenzo Librandi, Apr 19 2018

(GAP) a:=[0, 1, 0];; for n in [4..40] do a[n]:=a[n-1]+a[n-2]+a[n-3]; od; a; # Muniru A Asiru, Oct 24 2018

CROSSREFS

Cf. A000045, A000073, A027907, A027053, A078042, A145579, A278038.

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane

EXTENSIONS

Additional comments from Miklos Kristof, Jul 03 2002

STATUS

approved

A058265 Decimal expansion of the tribonacci constant t, the real root of x^3 - x^2 - x - 1. +20
77
1, 8, 3, 9, 2, 8, 6, 7, 5, 5, 2, 1, 4, 1, 6, 1, 1, 3, 2, 5, 5, 1, 8, 5, 2, 5, 6, 4, 6, 5, 3, 2, 8, 6, 6, 0, 0, 4, 2, 4, 1, 7, 8, 7, 4, 6, 0, 9, 7, 5, 9, 2, 2, 4, 6, 7, 7, 8, 7, 5, 8, 6, 3, 9, 4, 0, 4, 2, 0, 3, 2, 2, 2, 0, 8, 1, 9, 6, 6, 4, 2, 5, 7, 3, 8, 4, 3, 5, 4, 1, 9, 4, 2, 8, 3, 0, 7, 0, 1, 4 (list; constant; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

"The tribonacci constant, the only real solution to the equation x^3 - x^2 - x - 1 = 0, which is related to tribonacci sequences (in which U_n = U_n-1 + U_n-2 + U_n-3) as the Golden Ratio is related to the Fibonacci sequence and its generalizations. This ratio also appears when a snub cube is inscribed in an octahedron or a cube, by analogy once again with the appearance of the Golden Ratio when an icosahedron is inscribed in an octahedron. [John Sharp, 1997]"

The tribonacci constant corresponds to the Golden Section in a tripartite division 1 = u_1 + u_2 + u_3 of a unit line segment; i.e., if 1/u_1 = u_1/u_2 = u_2/u_3 = c, c is the tribonacci constant. - Seppo Mustonen, Apr 19 2005

The other two polynomial roots are the complex-conjugated pair -0.4196433776070805662759262... +- i* 0.60629072920719936925934... - R. J. Mathar, Oct 25 2008

For n >= 3, round(q^prime(n)) == 1 (mod 2*prime(n)). Proof in Shevelev link. - Vladimir Shevelev, Mar 21 2014

Concerning orthogonal projections, the tribonacci constant is the ratio of the diagonal of a square to the width of a rhombus projected by rotating a square along its diagonal in 3D until the angle of rotation equals the apparent apex angle at approximately 57.065 degrees (also the corresponding angle in the formula generating A256099). See illustration in the links. - Peter M. Chema, Jan 02 2017

From Wolfdieter Lang, Aug 10 2018: (Start)

Real eigenvalue t of the tribonacci Q-matrix <<1, 1, 1>,<1, 0, 0>,<0, 1, 0>>.

Lim_{n -> oo} T(n+1)/T(n) = t (from the T recurrence),  where T = {A000073(n+2)}_{n >= 0}. (End)

The nonnegative powers of t are t^n = T(n)*t^2 + (T(n-1) + T(n-2))*t + T(n-1)*1, for n >= 0, with T(n) = A000073(n), with T(-1) = 1 and T(-2) = -1, This follows from the recurrences derived from t^3 = t^2 + t + 1. See the examples below. For the negative powers see A319200. - Wolfdieter Lang, Oct 23 2018

REFERENCES

S. R. Finch, Mathematical Constants, Cambridge, 2003, Section 1.2.2.

David Wells, "The Penguin Dictionary of Curious and Interesting Numbers," Revised Edition, Penguin Books, London, England, 1997, page 23.

LINKS

Harry J. Smith, Table of n, a(n) for n = 1..20000

A. Beha et al., The convergence of diffy boxes, American Mathematical Monthly, Vol. 112 (2005), pp. 426-439.

F. Michel Dekking, Jeffrey Shallit, and N. J. A. Sloane, Queens in exile: non-attacking queens on infinite chess boards, Electronic J. Combin., 27:1 (2020), #P1.52.

O. Deveci, Y. Akuzum, E. Karaduman, and O. Erdag, The Cyclic Groups via Bezout Matrices, Journal of Mathematics Research, Vol. 7, No. 2, 2015, pp. 34-41.

Ömür Deveci, Zafer Adıgüzel, and Taha Doğan, On the Generalized Fibonacci-circulant-Hurwitz numbers, Notes on Number Theory and Discrete Mathematics (2020) Vol. 26, No. 1, 179-190.

Peter M. Chema, Tribonacci constant as ratio of square to rhombus projection

Wolfdieter Lang, The Tribonacci and ABC Representations of Numbers are Equivalent, arXiv preprint arXiv:1810.09787 [math.NT], 2018.

S. Litsyn and V. Shevelev, Irrational Factors Satisfying the Little Fermat Theorem, International Journal of Number Theory, vol.1, no.4 (2005), 499-512.

Xerardo Neira, A geometric construction of the tribonacci constant with marked ruler and compass

Tito Piezas III, Tribonacci constant and Pi

Simon Plouffe, Tribonacci constant to 2000 digits

Simon Plouffe, The Tribonacci constant(to 1000 digits)

Vladimir Shevelev, A property of n-bonacci constant, Seqfan (Mar 23 2014).

Nikita Sidorov, Expansions in non-integer bases: Lower, middle and top orders, Journal of Number Theory, Volume 129, Issue 4, April 2009, Pages 741-754. See Lemma 4.1 p. 750.

Kees van Prooijen, The Odd Golden Section

Kees van Prooijen, Tribonacci Box (analog of Golden Rectangle)

Eric Weisstein's World of Mathematics, Tribonacci Number

Eric Weisstein's World of Mathematics, Tribonacci Constant

Eric Weisstein's World of Mathematics, Fibonacci n-Step Number

FORMULA

t = (1/3)*(1+(19+3*sqrt(33))^(1/3)+(19-3*sqrt(33))^(1/3)). - Zak Seidov, Jun 08 2005

t = 1 - Sum_{k>=1} A057597(k+2)/(T_k*T_(k+1)), where T_n = A000073(n+1). - Vladimir Shevelev, Mar 02 2013

1/t + 1/t^2 + 1/t^3 = 1/A058265 + 1/A276800 + 1/A276801 = 1. - N. J. A. Sloane, Oct 28 2016

EXAMPLE

1.8392867552141611325518525646532866004241787460975922467787586394042032220\

    81966425738435419428307014141979826859240974164178450746507436943831545\

    820499513796249655539644613666121540277972678118941041...

From Wolfdieter Lang, Oct 23 2018: (Start)

The coefficients of t^2, t, 1 for t^n begin, for n >= 0:

    n     t^2    t    1

    -------------------

    0      0     0    1

    1      0     1    0

    2      1     0    0

    1      1     1    1

    4      2     2    1

    5      4     3    2

    6      7     6    4

    7     13    11    7

    8     24    20   13

    9     44    37   24

   10     81    68   44

...  (End)

MAPLE

Digits:=200; fsolve(x^3=x^2+x+1); # N. J. A. Sloane, Mar 16 2019

MATHEMATICA

RealDigits[ N[ 1/3 + 1/3*(19 - 3*Sqrt[33])^(1/3) + 1/3*(19 + 3*Sqrt[33])^(1/3), 100]] [[1]]

RealDigits[Root[x^3-x^2-x-1, 1], 10, 120][[1]] (* Harvey P. Dale, Mar 23 2019 *)

PROG

(PARI) { default(realprecision, 20080); x=solve(x=1, 2, x^3 - x^2 - x - 1); for (n=1, 20000, d=floor(x); x=(x-d)*10; write("b058265.txt", n, " ", d)); } \\ Harry J. Smith, May 30 2009

(PARI) q=(1+sqrtn(19+3*sqrt(33), 3)+sqrtn(19-3*sqrt(33), 3))/3 \\ Use \p# to set 'realprecision'. - M. F. Hasler, Mar 23 2014

CROSSREFS

Cf. A000073, A019712 (continued fraction), A133400, A254231, A158919 (spectrum = floor(n*t)).

Cf. A276800, A276801, A319200.

KEYWORD

nonn,cons

AUTHOR

Robert G. Wilson v, Dec 07 2000

STATUS

approved

A080843 Tribonacci word: limit S(infinity), where S(0) = 0, S(1) = 0,1, S(2) = 0,1,0,2 and for n >= 0, S(n+3) = S(n+2) S(n+1) S(n). +20
58
0, 1, 0, 2, 0, 1, 0, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 0, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 0, 1, 0, 2, 0, 1, 0, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 0, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 0, 1, 0, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,4

COMMENTS

An Arnoux-Rauzy or episturmian word.

The initial terms in a form suitable for mousing:

0,1,0,2,0,1,0,0,1,0,2,0,1,0,1,0,2,0,1,0,0,1,0,2,0,1,0,2,0,1,0,0,1,0,2,0,1,

0,1,0,2,0,1,0,0,1,0,2,0,1,0,0,1,0,2,0,1,0,1,0,2,0,1,0,0,1,0,2,0,1,0,2,0,1,

0,0,1,0,2,0,1,0,1,0,2,0,1,0,0,1,0,2,0,1,0,1,0,2,0,1,0,0,1,0,2,0,1,0,2,0,1,

0,0,1,0,2,0,1,0,1,0,2,0,1,0,0,1,0,2,0,1,0,0,1,0,2,0,1,0,1,0,2,0,1,0,0,1,0,

2,0,1,0,2,0,1,0,0,1,0,2,0,1,0,1,0,2,0,1,0,0,1,0,2,0,1,0,2,0,1,0,0,1,0,2,0,

1,0,1,0,2,0,1,0,0,1,0,2,0,1,0,0,1,0,2,0,1,0,1,0,2,0,1,0,0,1,0,2,0,1,0,2,0,

1,0,0,1,0,2,0,1,0,1,0,2,0,1,0,0,1,0,2,0,1,0,1,0,2,0,1,0,0,1,0,2,0,1,0,2,0,

1,0,0,1,0,2,0,1,0,1,0,2,0,1,0,0,1,0,2,0,1,0,0,1,0,2,0,1,0,1,0,2,0,1,0,0,1,

...

Let TTW(a,b,c) denote this sequence written over the alphabet {a,b,c}. It begins :

a,b,a,c,a,b,a,a,b,a,c,a,b,a,b,a,c,a,b,a,a,b,a,c,a,b,a,c,a,b,a,a,b,a,c,a,b,

a,b,a,c,a,b,a,a,b,a,c,a,b,a,a,b,a,c,a,b,a,b,a,c,a,b,a,a,b,a,c,a,b,a,c,a,b,

a,a,b,a,c,a,b,a,b,a,c,a,b,a,a,b,a,c,a,b,a,b,a,c,a,b,a,a,b,a,c,a,b,a,c,a,b,

a,a,b,a,c,a,b,a,b,a,c,a,b,a,a,b,a,c,a,b,a,a,b,a,c,a,b,a,b,a,c,a,b,a,a,b,a,

c,a,b,a,c,a,b,a,a,b,a,c,a,b,a,b,a,c,a,b,a,a,b,a,c,a,b,a,c,a,b,a,a,b,a,c,a,

b,a,b,a,c,a,b,a,a,b,a,c,a,b,a,a,b,a,c,a,b,a,b,a,c,a,b,a,a,b,a,c,a,b,a,c,a,

b,a,a,b,a,c,a,b,a,b,a,c,a,b,a,a,b,a,c,a,b,a,b,a,c,a,b,a,a,b,a,c,a,b,a,c,a,

b,a,a,b,a,c,a,b,a,b,a,c,a,b,a,a,b,a,c,a,b,a,a,b,a,c,a,b,a,b,a,c,a,b,a,a,b,

... - From N. J. A. Sloane, Jul 10 2018

From Wolfdieter Lang, Aug 14 2018: (Start)

The substitution sequence 0 -> 0, 1; 1-> 0, 2; 2 -> 0  read as an irregular triangle with rows l >= 1 and length T(l+2), with the tribonacci numbers T = A000073, leads to the tribonacci tree TriT with level TriT(l) for l >= 1 given by a(0), a(1), ..., a(T(l+2)-1).

  E.g., l = 4:  0 1  0 2  0 1  0 with T(6) = 7 leaves (nodes). See the example below.

This tree can be used to find the tribonacci representation of nonnegative n given in A278038, call it ZTri(n) (Z for generalized Zeckendorf), by replacing every 2 by 1, and reading from bottom to top, omitting the final 0, except for n = 0 which is represented by 0. See the example below. (End)

REFERENCES

The entry A092782 has a more complete list of references and links. - N. J. A. Sloane, Aug 17 2018

J.-P. Allouche and J. Shallit, Automatic Sequences, Cambridge Univ. Press, 2003, p. 246.

LINKS

N. J. A. Sloane, Table of n, a(n) for n = 0..20000

Jean Berstel and J. Karhumaki, Combinatorics on words - a tutorial, Bull. EATCS, #79 (2003), pp. 178-228.

Nataliya Chekhova, Pascal Hubert, and Ali Messaoudi, Propriétés combinatoires, ergodiques et arithmétiques de la substitution de Tribonacci, Journal de théorie des nombres de Bordeaux, 13.2 (2001): 371-394.

D. Damanik and L. Q. Zamboni, Arnoux-Rauzy subshifts: linear recurrence, powers and palindromes, arXiv:math/0208137 [math.CO], 2002.

F. Michel Dekking, Morphisms, Symbolic Sequences, and Their Standard Forms, Journal of Integer Sequences, Vol. 19 (2016), Article 16.1.1.

F. Michel Dekking, Jeffrey Shallit, and N. J. A. Sloane, Queens in exile: non-attacking queens on infinite chess boards, Electronic J. Combin., 27:1 (2020), #P1.52.

Eric Duchêne and Michel Rigo, A morphic approach to combinatorial games: the Tribonacci case. RAIRO - Theoretical Informatics and Applications, 42, 2008, pp 375-393. doi:10.1051/ita:2007039. [Also available here]

Wolfdieter Lang, The Tribonacci and ABC Representations of Numbers are Equivalent, arXiv:1810.09787v1 [math.NT], 2018.

Aayush Rajasekaran, Narad Rampersad, Jeffrey Shallit, Overpals, Underlaps, and Underpals, In: Brlek S., Dolce F., Reutenauer C., Vandomme É. (eds) Combinatorics on Words, WORDS 2017, Lecture Notes in Computer Science, vol 10432.

Gérard Rauzy, Nombres algébriques et substitutions, Bull. Soc. Math. France 110.2 (1982): 147-178. See page 148.

Bo Tan and Zhi-Ying Wen, Some properties of the Tribonacci sequence, European Journal of Combinatorics, 28 (2007) 1703-1719.

O. Turek, Abelian Complexity Function of the Tribonacci Word, J. Int. Seq. 18 (2015) # 15.3.4

Index entries for sequences that are fixed points of mappings

FORMULA

Fixed point of morphism 0 -> 0, 1; 1 -> 0, 2; 2 -> 0.

a(n) = A092782(n+1) - 1. [Joerg Arndt, Sep 14 2013]

EXAMPLE

From Joerg Arndt, Mar 12 2013: (Start)

The first few steps of the substitution are

Start: 0

Rules:

  0 --> 01

  1 --> 02

  2 --> 0

-------------

0:   (#=1)

  0

1:   (#=2)

  01

2:   (#=4)

  0102

3:   (#=7)

  0102010

4:   (#=13)

  0102010010201

5:   (#=24)

  010201001020101020100102

6:   (#=44)

  01020100102010102010010201020100102010102010

7:   (#=81)

  010201001020101020100102010201001020101020100102010010201010201001020102010010201

(End)

From Wolfdieter Lang, Aug 14 2018: (Start)

The levels l of the tree TriT begin (the branches (edges) have been omitted):

Substitution rule: 0 -> 0 1; 1 -> 0 2; 2 -> 0.

l=1:                                 0

l=2:                  0                                 1

l=3:             0             1                  0             2

l=4:         0      1       0     2          0       1          0

l=5:      0    1  0   2   0   1   0        0   1   0   2      0    1

...

----------------------------------------------------------------------------------

n =       0    1  2   3   4   5   6        7   8   9  10     11   12

The tribonacci representation of n >= 0 (A278038; here at level 5 for n = 0.. 12) is obtained by reading from bottom to top (along the branches not shown) replacing 2 with 1, omitting the last 0 except for n = 0.

          0    1  0   1   0   1   0        0   1   0  1      0    1

                  1   1   0   0   1        0   0   1  1      0    0

                          1   1   1        0   0   0  0      1    1

                                           1   1   1  1      1    1

E.g., ZTri(9) = A278038(9) = 1010. (End)

MAPLE

M:=17; S[1]:=`0`; S[2]:=`01`; S[3]:=`0102`;

for n from 4 to M do S[n]:=cat(S[n-1], S[n-2], S[n-3]); od:

t0:=S[M]: l:=length(t0); for i from 1 to l do lprint(i, substring(t0, i..i)); od:

# N. J. A. Sloane, Nov 01 2006

# A version that uses the letters a, b, c:

M:=10; B[1]:=`a`; B[2]:=`ab`; B[3]:=`abac`;

for n from 4 to M do B[n]:=cat(B[n-1], B[n-2], B[n-3]); od:

B[10]; # N. J. A. Sloane, Oct 30 2018

MATHEMATICA

Nest[Flatten[ # /. {0 -> {0, 1}, 1 -> {0, 2}, 2 -> {0}}] &, {0}, 8] (* updated by Robert G. Wilson v, Nov 07 2010 *)

PROG

(PARI)

strsub(s, vv, off=0)=

{

    my( nl=#vv, r=[], ct=1 );

    while ( ct <= #s,

        r = concat(r, vv[ s[ct] + (1-off) ] );

        ct += 1;

    );

    return( r );

}

t=[0];  for (k=1, 10, t=strsub( t, [[0, 1], [0, 2], [0]], 0 ) );  t

\\ Joerg Arndt, Sep 14 2013

CROSSREFS

Cf. A003849 (the Fibonacci word), A092782.

See A092782 for a version over the alphabet {1,2,3}.

See A278045 for another construction.

Cf. A000073, A278038.

First differences: A317950. Partial sums: A319198.

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane, Mar 29 2003

EXTENSIONS

More terms from Antonio G. Astudillo (afg_astudillo(AT)lycos.com), Apr 06 2003

STATUS

approved

A231575 Indices of prime tribonacci numbers (A001590). +20
54
4, 5, 7, 9, 25, 29, 49, 79, 1613, 15205 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

a(11) > 2*10^5.

LINKS

Table of n, a(n) for n=1..10.

PROG

(PARI) v=[1, 0, 1]; for(n=4, 1e4, if(ispseudoprime(t=v[1]+v[2]+v[3]), print1(n", ")); v=[v[2], v[3], t]) \\ Charles R Greathouse IV, Nov 18 2013

CROSSREFS

Cf. A001590, A231574, A000213, A056816, A157611.

KEYWORD

nonn

AUTHOR

Robert Price, Nov 18 2013

STATUS

approved

A003144 Positions of letter a in the tribonacci word abacabaabacababac... generated by a->ab, b->ac, c->a (cf. A092782).
(Formerly M2399)
+20
53
1, 3, 5, 7, 8, 10, 12, 14, 16, 18, 20, 21, 23, 25, 27, 29, 31, 32, 34, 36, 38, 40, 42, 44, 45, 47, 49, 51, 52, 54, 56, 58, 60, 62, 64, 65, 67, 69, 71, 73, 75, 76, 78, 80, 82, 84, 86, 88, 89, 91, 93, 95, 97, 99, 101, 102, 104, 106, 108, 110, 112, 113, 115, 117, 119, 121, 123, 125 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

From Philippe Deléham, Feb 27 2009: (Start)

A003144, A003145, A003146 may be defined as follows. Consider the morphism psi: a -> ab, b -> ac, c -> a. The image (or trajectory) of a under repeated application of this map is the infinite ternary tribonacci word a, b, a, c, a, b, a, a, b, a, c, a, b, a, b, a, c, ... (setting a = 1, b = 2, c = 3 gives A092782). The indices of a, b, c give respectively A003144, A003145, A003146. (End) [For the word with a -> 0, b -> 1, c -> 2 with offset 0 see A080843. - Wolfdieter Lang, Aug 10 2018]

The infinite word may also be defined as the limit S_oo where S_1 = a, S_n = psi(S_{n-1}). Or, by S_1 = a, S_2 = ab, S_3 = abac, and thereafter S_n = S_{n-1} S_{n-2} S_{n-3}. It is the unique word such that S_oo = psi(S_oo).

Also, indices of a in the sequence closed under a -> abac, b -> aba, c -> ab; starting with a(1) = a. - Philippe Deléham, Apr 16 2004

Theorem: A number m is in this sequence iff the tribonacci representation of m-1 ends with 0. [Duchene and Rigo, Remark 2.5] - N. J. A. Sloane, Nov 18 2016; corrected Mar 02 2019.

REFERENCES

Eric Duchêne, Aviezri S. Fraenkel, Vladimir Gurvich, Nhan Bao Ho, Clark Kimberling, Urban Larsson, Wythoff Visions, Games of No Chance, Vol. 5;  MSRI Publications, Vol. 70 (2017), pages 101-153.

N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

LINKS

N. J. A. Sloane, Table of n, a(n) for n = 1..10609

Elena Barcucci, Luc Belanger and Srecko Brlek, On tribonacci sequences, Fib. Q., 42 (2004), 314-320.

L. Carlitz, R. Scoville and V. E. Hoggatt, Jr., Fibonacci representations of higher order, Fib. Quart., 10 (1972), 43-69. The present sequence is called a.

F. Michel Dekking, Jeffrey Shallit, and N. J. A. Sloane, Queens in exile: non-attacking queens on infinite chess boards, Electronic J. Combin., 27:1 (2020), #P1.52.

Eric Duchêne and Michel Rigo, A morphic approach to combinatorial games: the Tribonacci case, RAIRO - Theoretical Informatics and Applications, 42, 2008, pp 375-393. doi:10.1051/ita:2007039. [Also available from Numdam archive]

A. J. Hildebrand, Junxian Li, Xiaomin Li, Yun Xie, Almost Beatty Partitions, arXiv:1809.08690 [math.NT], 2018.

Wolfdieter Lang, The Tribonacci and ABC Representations of Numbers are Equivalent, arXiv preprint arXiv:1810.09787 [math.NT], 2018.

FORMULA

It appears that a(n) is always either floor(n*t) or floor(n*t)+1 for all n, where t is the tribonacci constant A058265. See A275926. - N. J. A. Sloane, Oct 28 2016. This is true - see the Dekking et al. paper. - N. J. A. Sloane, Jul 22 2019

MAPLE

M:=17; S[1]:=`a`; S[2]:=`ab`; S[3]:=`abac`;

for n from 4 to M do S[n]:=cat(S[n-1], S[n-2], S[n-3]); od:

t0:=S[M]: l:=length(t0); t1:=[];

for i from 1 to l do if substring(t0, i..i) = `a` then t1:=[op(t1), i]; fi; od: t1; # N. J. A. Sloane, Nov 01 2006

MATHEMATICA

A003144L = StringPosition[SubstitutionSystem[{"a" -> "ab", "b" -> "ac", "c" -> "a"}, "a", {#}][[1]], "a"][[All, 1]] &; A003144L[7] (* JungHwan Min, Dec 22 2016 *)

CROSSREFS

Cf. A003145, A003146, A080843, A092782, A058265, A275926, A276793, A276796, A278039 (subtract 1 from each term, and use offset 0).

First differences are A276788.

For tribonacci representations of numbers see A278038.

KEYWORD

nonn

AUTHOR

N. J. A. Sloane

EXTENSIONS

More terms from Philippe Deléham, Apr 16 2004

Entry revised by N. J. A. Sloane, Oct 13 2016

STATUS

approved

A231574 Primes in the tribonacci sequence A001590. +20
53
2, 3, 11, 37, 634061, 7256527, 1424681173049, 123937002926372177911 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

a(9) contains 427 digits and is too large to include here.

a(10) contains 4024 digits and is too large to include here.

LINKS

Table of n, a(n) for n=1..8.

CROSSREFS

Cf. A000213, A001590, A056816, A157611, A231575.

KEYWORD

nonn

AUTHOR

Robert Price, Nov 18 2013

STATUS

approved

A003145 Positions of letter b in the tribonacci word abacabaabacababac... generated by a->ab, b->ac, c->a (cf. A092782).
(Formerly M1571)
+20
52
2, 6, 9, 13, 15, 19, 22, 26, 30, 33, 37, 39, 43, 46, 50, 53, 57, 59, 63, 66, 70, 74, 77, 81, 83, 87, 90, 94, 96, 100, 103, 107, 111, 114, 118, 120, 124, 127, 131, 134, 138, 140, 144, 147, 151, 155, 158, 162, 164, 168, 171, 175, 179, 182, 186, 188, 192, 195, 199, 202, 206, 208 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

A003144, A003145, A003146 may be defined as follows. Consider the map psi: a -> ab, b -> ac, c -> a. The image (or trajectory) of a under repeated application of this map is the infinite word a, b, a, c, a, b, a, a, b, a, c, a, b, a, b, a, c, ... (setting a = 1, b = 2, c = 3 gives A092782). The indices of a, b, c give respectively A003144, A003145, A003146. - Philippe Deléham, Feb 27 2009

The infinite word may also be defined as the limit S_oo where S_1 = a, S_n = psi(S_{n-1}). Or, by S_1 = a, S_2 = ab, S_3 = abac, and thereafter S_n = S_{n-1} S_{n-2} S_{n-3}. It is the unique word such that S_oo = psi(S_oo).

Also indices of b in the sequence closed under a -> abac, b -> aba, c -> ab; starting with a(1) = a. - Philippe Deléham, Apr 16 2004

Theorem: A number m is in this sequence iff the tribonacci representation of m-1 ends with 01. [Duchene and Rigo, Remark 2.5] - N. J. A. Sloane, Mar 02 2019

REFERENCES

Eric Duchêne, Aviezri S. Fraenkel, Vladimir Gurvich, Nhan Bao Ho, Clark Kimberling, Urban Larsson, Wythoff Visions, Games of No Chance, Vol. 5;  MSRI Publications, Vol. 70 (2017), pages 101-153.

N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

LINKS

N. J. A. Sloane, Table of n, a(n) for n = 1..10609

Elena Barcucci, Luc Belanger and Srecko Brlek, On tribonacci sequences, Fib. Q., 42 (2004), 314-320.

L. Carlitz, R. Scoville and V. E. Hoggatt, Jr., Fibonacci representations of higher order, Fib. Quart., 10 (1972), 43-69. The present sequence is called b.

F. Michel Dekking, Jeffrey Shallit, and N. J. A. Sloane, Queens in exile: non-attacking queens on infinite chess boards, Electronic J. Combin., 27:1 (2020), #P1.52.

Eric Duchêne and Michel Rigo, A morphic approach to combinatorial games: the Tribonacci case. RAIRO - Theoretical Informatics and Applications, 42, 2008, pp 375-393. doi:10.1051/ita:2007039. [Also available from Numdam]

A. J. Hildebrand, Junxian Li, Xiaomin Li, Yun Xie, Almost Beatty Partitions, arXiv:1809.08690 [math.NT], 2018.

Wolfdieter Lang, The Tribonacci and ABC Representations of Numbers are Equivalent, arXiv preprint arXiv:1810.09787 [math.NT], 2018.

FORMULA

It appears that a(n) = floor(n*t^2) + eps for all n, where t is the tribonacci constant A058265 and eps is 0, 1, or 2. See A276799. - N. J. A. Sloane, Oct 28 2016. This is true - see the Dekking et al. paper. - N. J. A. Sloane, Jul 22 2019

MAPLE

M:=17; S[1]:=`a`; S[2]:=`ab`; S[3]:=`abac`;

for n from 4 to M do S[n]:=cat(S[n-1], S[n-2], S[n-3]); od:

t0:=S[M]: l:=length(t0); t1:=[];

for i from 1 to l do if substring(t0, i..i) = `b` then t1:=[op(t1), i]; fi; od: # N. J. A. Sloane

MATHEMATICA

StringPosition[SubstitutionSystem[{"a" -> "ab", "b" -> "ac", "c" -> "a"}, "b", {#}][[1]], "b"][[All, 1]] &@9 (* Michael De Vlieger, Mar 30 2017, Version 10.2, after JungHwan Min at A003144 *)

CROSSREFS

Cf. A003144, A003146, A080843, A092782, A058265, A276799, A276800, A276794, A276797.

First differences give A276789. A278040 (subtract 1 from each term, and use offset 1).

For tribonacci representations of numbers see A278038.

KEYWORD

nonn

AUTHOR

N. J. A. Sloane

EXTENSIONS

More terms from Philippe Deléham, Apr 16 2004

Corrected by T. D. Noe and N. J. A. Sloane, Nov 01 2006

Entry revised by N. J. A. Sloane, Oct 13 2016

STATUS

approved

A003146 Positions of letter c in the tribonacci word abacabaabacababac... generated by a->ab, b->ac, c->a (cf. A092782).
(Formerly M3407)
+20
52
4, 11, 17, 24, 28, 35, 41, 48, 55, 61, 68, 72, 79, 85, 92, 98, 105, 109, 116, 122, 129, 136, 142, 149, 153, 160, 166, 173, 177, 184, 190, 197, 204, 210, 217, 221, 228, 234, 241, 247, 254, 258, 265, 271, 278, 285, 291, 298, 302, 309, 315, 322, 329, 335, 342, 346, 353, 359 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

Comment from Philippe Deléham, Feb 27 2009: A003144, A003145, A003146 may be defined as follows. Consider the map psi: a -> ab, b -> ac, c -> a. The image (or trajectory) of a under repeated application of this map is the infinite word a, b, a, c, a, b, a, a, b, a, c, a, b, a, b, a, c, ... (setting a = 1, b = 2, c = 3 gives A092782). The indices of a, b, c give respectively A003144, A003145, A003146.

The infinite word may also be defined as the limit S_oo where S_1 = a, S_n = psi(S_{n-1}). Or, by S_1 = a, S_2 = ab, S_3 = abac, and thereafter S_n = S_{n-1} S_{n-2} S_{n-3}. It is the unique word such that S_oo = psi(S_oo).

Also, indices of c in the sequence closed under a -> abac, b -> aba, c -> ab; starting with a(1) = a. - Philippe Deléham, Apr 16 2004

Theorem: A number m is in this sequence iff the tribonacci representation of m-1 ends with 11. [Duchene and Rigo, Remark 2.5] - N. J. A. Sloane, Mar 02 2019

REFERENCES

Eric Duchêne, Aviezri S. Fraenkel, Vladimir Gurvich, Nhan Bao Ho, Clark Kimberling, Urban Larsson, Wythoff Visions, Games of No Chance, Vol. 5;  MSRI Publications, Vol. 70 (2017), pages 101-153.

N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

LINKS

N. J. A. Sloane, Table of n, a(n) for n = 1..10609

Elena Barcucci, Luc Belanger and Srecko Brlek, On tribonacci sequences, Fib. Q., 42 (2004), 314-320.

L. Carlitz, R. Scoville and V. E. Hoggatt, Jr., Fibonacci representations of higher order, Fib. Quart., 10 (1972), 43-69. The present sequence is called c.

F. Michel Dekking, Jeffrey Shallit, and N. J. A. Sloane, Queens in exile: non-attacking queens on infinite chess boards, Electronic J. Combin., 27:1 (2020), #P1.52.

Eric Duchêne and Michel Rigo, A morphic approach to combinatorial games: the Tribonacci case. RAIRO - Theoretical Informatics and Applications, 42, 2008, pp 375-393. doi:10.1051/ita:2007039. [Also available from Numdam]

A. J. Hildebrand, Junxian Li, Xiaomin Li, Yun Xie, Almost Beatty Partitions, arXiv:1809.08690 [math.NT], 2018.

Wolfdieter Lang, The Tribonacci and ABC Representations of Numbers are Equivalent, arXiv preprint arXiv:1810.09787 [math.NT], 2018.

FORMULA

It appears that a(n) = floor(n*t^3) + eps for all n, where t is the tribonacci constant A058265 and eps is 0, 1, 2, or 3. See A277721. - N. J. A. Sloane, Oct 28 2016. This is true - see the Dekking et al. paper. - N. J. A. Sloane, Jul 22 2019

MAPLE

M:=17; S[1]:=`a`; S[2]:=`ab`; S[3]:=`abac`;

for n from 4 to M do S[n]:=cat(S[n-1], S[n-2], S[n-3]); od:

t0:=S[M]: l:=length(t0); t1:=[];

for i from 1 to l do if substring(t0, i..i) = `c` then t1:=[op(t1), i]; fi; od:

# N. J. A. Sloane, Nov 01 2006

MATHEMATICA

StringPosition[SubstitutionSystem[{"a" -> "ab", "b" -> "ac", "c" -> "a"}, "c", {#}][[1]], "c"][[All, 1]] &@ 11 (* Michael De Vlieger, Mar 30 2017, Version 10.2, after JungHwan Min at A003144 *)

CROSSREFS

Cf. A003145, A003144, A080843, A092782, A058265, A276791, A276798, A276801, A277721.

First differences are A276792. A278041 (subtract 1 from each term, and use offset 0).

For tribonacci representations of numbers see A278038.

KEYWORD

nonn

AUTHOR

N. J. A. Sloane

EXTENSIONS

More terms from Philippe Deléham, Apr 16 2004

Entry revised by N. J. A. Sloane, Oct 13 2016

STATUS

approved

page 1 2 3 4 5 6 7 8 9 10 ... 55

Search completed in 0.286 seconds

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 6 10:50 EDT 2021. Contains 346533 sequences. (Running on oeis4.)