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.
%I A034867 #123 Aug 20 2025 17:16:48 %S A034867 1,2,3,1,4,4,5,10,1,6,20,6,7,35,21,1,8,56,56,8,9,84,126,36,1,10,120, %T A034867 252,120,10,11,165,462,330,55,1,12,220,792,792,220,12,13,286,1287, %U A034867 1716,715,78,1,14,364,2002,3432,2002,364,14,15,455,3003,6435,5005,1365,105,1 %N A034867 Triangle of odd-numbered terms in rows of Pascal's triangle. %C A034867 Also triangle of numbers of n-sequences of 0,1 with k subsequences of consecutive 01 because this number is C(n+1,2*k+1). - Roger Cuculiere (cuculier(AT)imaginet.fr), Nov 16 2002 %C A034867 From _Gary W. Adamson_, Oct 17 2008: (Start) %C A034867 Received from _Herb Conn_: %C A034867 Let T = tan x, then %C A034867 tan x = T %C A034867 tan 2x = 2T / (1 - T^2) %C A034867 tan 3x = (3T - T^3) / (1 - 3T^2) %C A034867 tan 4x = (4T - 4T^3) / (1 - 6T^2 + T^4) %C A034867 tan 5x = (5T - 10T^3 + T^5) / (1 - 10T^2 + 5T^4) %C A034867 tan 6x = (6T - 20T^3 + 6T^5) / (1 - 15T^2 + 15T^4 - T^6) %C A034867 tan 7x = (7T - 35T^3 + 21T^5 - T^7) / (1 - 21T^2 + 35T^4 - 7T^6) %C A034867 tan 8x = (8T - 56T^3 + 56T^5 - 8T^7) / (1 - 28T^2 + 70T^4 - 28T^6 + T^8) %C A034867 tan 9x = (9T - 84T^3 + 126T^5 - 36T^7 + T^9) / (1 - 36 T^2 + 126T^4 - 84T^6 + 9T^8) %C A034867 ... To get the next one in the series, (tan 10x), for the numerator add: %C A034867 9....84....126....36....1 previous numerator + %C A034867 1....36....126....84....9 previous denominator = %C A034867 10..120....252...120...10 = new numerator %C A034867 For the denominator add: %C A034867 ......9.....84...126...36...1 = previous numerator + %C A034867 1....36....126....84....9.... = previous denominator = %C A034867 1....45....210...210...45...1 = new denominator %C A034867 ...where numerators = A034867, denominators = A034839 %C A034867 (End) %C A034867 Column k is the sum of columns 2k and 2k+1 of A007318. - _Philippe Deléham_, Nov 12 2008 %C A034867 Triangle, with zeros omitted, given by (2, -1/2, 1/2, 0, 0, 0, 0, 0, 0, 0, ...) DELTA (0, 1/2, -1/2, 0, 0, 0, 0, 0, 0, 0, ...) where DELTA is the operator defined in A084938. - _Philippe Deléham_, Dec 12 2011 %C A034867 The row polynomials N(n,x) = Sum_{k=0..floor((n-1)/2)} T(n-1,k)*x^k, and D(n,x) = Sum_{k=0..floor(n/2)} A034839(n,k)*x^k, n >= 1, satisfy the recurrences N(n,x) = D(n-1,x) + N(n-1,x), D(n,x) = D(n-1,x) + x*N(n-1,x), with inputs N(1,x) = 1 = D(1,x). This is due to the Pascal triangle A007318 recurrence. Q(n,x) := tan(n*x)/tan(x) satisfies the recurrence Q(n,x) = (1 + Q(n-1,x))/(1 - v(x)*Q(n-1,x)) with input Q(1,x) = 1 and v = v(x) := (tan(x))^2. This recurrence is obtained from the addition theorem for tan(n*x) using n = 1 + (n-1). Therefore Q(n,x) = N(n,-v(x))/D(n,-v(x)). This proves the Gary W. Adamson contribution from above. See also A220673. This calculation was motivated by an e-mail of Thomas Olsen. The Oliver/Prodinger and Ma references resort to HAKEM Al Memo 239, Item 16, for the tan(n*x) formula in terms of tan(x). - _Wolfdieter Lang_, Jan 17 2013 %C A034867 The infinitesimal generator (infinigen) for the Narayana polynomials A090181/A001263 can be formed from the row polynomials P(n,y) of this entry. The resulting matrix is an instance of a matrix representation of the analytic infinigens presented in A145271 for general sets of binomial Sheffer polynomials and in A001263 and A119900 specifically for the Narayana polynomials. Given the column vector of row polynomials V = (1, P(1,x) = 2x, P(2,y) = 3x + x^2, P(3,y) = 4x + 4x^2, ...), form the lower triangular matrix M(n,k) = V(n-k,n-k), i.e., diagonally multiply the matrix with all ones on the diagonal and below by the components of V. Form the matrix MD by multiplying A132440^Transpose = A218272 = D (representing derivation of o.g.f.s) by M, i.e., MD = M*D. The non-vanishing component of the first row of (MD)^n * V / (n+1)! is the n-th Narayana polynomial. - _Tom Copeland_, Dec 09 2015 %C A034867 The diagonals of this entry are A078812 (also shifted A128908 and unsigned A053122, which are embedded in A030528, A102426, A098925, A109466, A092865). Equivalently, the antidiagonals of A078812 are the rows of A034867. - _Tom Copeland_, Dec 12 2015 %C A034867 Binomial(n,2k+1) is also the number of permutations avoiding both 132 and 213 with k peaks, i.e., positions with w[i]<w[i+1]>w[i+2]. - _Lara Pudwell_, Dec 19 2018 %C A034867 Binomial(n,2k+1) is also the number of permutations avoiding both 123 and 132 with k peaks, i.e., positions with w[i]<w[i+1]>w[i+2]. - _Lara Pudwell_, Dec 19 2018 %C A034867 The row polynomial P(n, x) = Sum_{0..floor(n/2)} T(n, k)*x^k appears as numerator polynomial of the diagonal sequence m of triangle A104698 as follows. G(m, x) = P(m, x^2)/(1 - x)^(m+1), for m >= 0. - _Wolfdieter Lang_, May 14 2025 %C A034867 Number of acyclic orientations of the path graph on n+1 vertices, with k-1 sinks. - _Per W. Alexandersson_, Aug 15 2025 %D A034867 A. T. Benjamin and J. J. Quinn, Proofs that really count: the art of combinatorial proof, M.A.A. 2003, id. 136. %H A034867 G. C. Greubel, <a href="/A034867/b034867.txt">Table of n, a(n) for the first 100 rows, flattened</a> %H A034867 Jean-Luc Baril and José Luis Ramírez, <a href="https://arxiv.org/abs/2302.12741">Descent distribution on Catalan words avoiding ordered pairs of Relations</a>, arXiv:2302.12741 [math.CO], 2023. %H A034867 M. Bukata, R. Kulwicki, N. Lewandowski, L. Pudwell, J. Roth, and T. Wheeland, <a href="https://arxiv.org/abs/1812.07112">Distributions of Statistics over Pattern-Avoiding Permutations</a>, arXiv preprint arXiv:1812.07112 [math.CO], 2018. %H A034867 L. Carlitz and R. Scoville, <a href="https://web.archive.org/web/2024*/https://www.fq.math.ca/Scanned/15-3/carlitz1.pdf">Zero-one sequences and Fibonacci numbers</a>, Fibonacci Quarterly, 15 (1977), 246-254. %H A034867 Sergi Elizalde, Johnny Rivera Jr., and Yan Zhuang, <a href="https://arxiv.org/abs/2408.15111">Counting pattern-avoiding permutations by big descents</a>, arXiv:2408.15111 [math.CO], 2024. See p. 6. %H A034867 S.-M. Ma, <a href="http://arxiv.org/abs/1205.0735">On some binomial coefficients related to the evaluation of tan(nx)</a>, arXiv preprint arXiv:1205.0735 [math.CO], 2012. - From _N. J. A. Sloane_, Oct 13 2012 %H A034867 K. Oliver and H. Prodinger, The continued fraction expansion of Gauss' hypergeometric function and a new application to the tangent function, Transactions of the Royal Society of South Africa, Vol. 76 (2012), 151-154, <a href="http://dx.doi.org/10.1080/0035919X.2012.727363">[DOI]</a>, <a href="https://web.archive.org/web/20171111121503/http://math.sun.ac.za/~hproding/pdffiles/Avery-contribution-July-2012.pdf">[PDF]</a>. - From _N. J. A. Sloane_, Jan 03 2013 %H A034867 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/Tangent.html">Tangent</a>. [From _Eric W. Weisstein_, Oct 18 2008] %F A034867 T(n,k) = C(n+1,2k+1) = Sum_{i=k..n-k} C(i,k) * C(n-i,k). %F A034867 E.g.f.: 1+(exp(x)*sinh(x*sqrt(y)))/sqrt(y). - _Vladeta Jovovic_, Mar 20 2005 %F A034867 G.f.: 1/((1-z)^2-t*z^2). - _Emeric Deutsch_, Apr 01 2005 %F A034867 T(n,k) = Sum_{j = 0..n} A034839(j,k). - _Philippe Deléham_, May 18 2005 %F A034867 Pell(n+1) = A000129(n+1) = Sum_{k=0..n} T(n,k) * 2^k = (1/n!) Sum_{k=0..n} A131980(n,k) * 2^k. - _Tom Copeland_, Nov 30 2007 %F A034867 T(n,k) = A007318(n,2k) + A007318(n,2k+1). - _Philippe Deléham_, Nov 12 2008 %F A034867 O.g.f for column k, k>=0: (1/(1-x)^2)*(x/(1-x))^(2*k). See the G.f. of this array given above by Emeric Deutsch. - _Wolfdieter Lang_, Jan 18 2013 %F A034867 T(n,k) = (x^(2*k+1))*((1+x)^n-(1-x)^n)/2. - _L. Edson Jeffery_, Jan 15 2014 %e A034867 Triangle T starts: %e A034867 n\k 0 1 2 3 4 5 ... ---------------------------------------- %e A034867 0: 1 %e A034867 1: 2 %e A034867 2: 3 1 %e A034867 3: 4 4 %e A034867 4: 5 10 1 %e A034867 5: 6 20 6 %e A034867 6: 7 35 21 1 %e A034867 7: 8 56 56 8 %e A034867 8: 9 84 126 36 1 %e A034867 9: 10 120 252 120 10 %e A034867 10: 11 165 462 330 55 1 %e A034867 11: 12 220 792 792 220 12 %e A034867 ... ... reformatted and extended by - _Wolfdieter Lang_, May 14 2025 %p A034867 seq(seq(binomial(n+1,2*k+1), k=0..floor(n/2)), n=0..14); # _Emeric Deutsch_, Apr 01 2005 %t A034867 u[1, x_] := 1; v[1, x_] := 1; z = 12; %t A034867 u[n_, x_] := u[n - 1, x] + x*v[n - 1, x] %t A034867 v[n_, x_] := u[n - 1, x] + v[n - 1, x] %t A034867 cu = Table[CoefficientList[u[n, x], x], {n, 1, z}]; %t A034867 TableForm[cu] (* A034839 as a triangle *) %t A034867 cv = Table[CoefficientList[v[n, x], x], {n, 1, z}]; %t A034867 TableForm[cv] (* A034867 as a triangle *) %t A034867 (* _Clark Kimberling_, Feb 18 2012 *) %t A034867 Table[Binomial[n+1, 2*k+1], {n,0,20}, {k,0,Floor[n/2]}]//Flatten (* _G. C. Greubel_, Mar 06 2018 *) %o A034867 (PARI) for(n=0,20, for(k=0,floor(n/2), print1(binomial(n+1,2*k+1), ", "))) \\ _G. C. Greubel_, Mar 06 2018 %o A034867 (Magma) /* as a triangle */ [[Binomial(n+1,2*k+1): k in [0..Floor(n/2)]]: n in [0..20]]; // _G. C. Greubel_, Mar 06 2018 %Y A034867 Cf. A000129, A007318, A034839, A034867, A084938, A131980, A220673. %Y A034867 Cf. A001263, A090181, A119900, A132440, A145271. %Y A034867 Cf. A030528, A053122, A078812, A092865, A098925, A102426, A109466, A128908, A218272, A104698. %Y A034867 From _Wolfdieter Lang_, May 14 2025:(Start) %Y A034867 Row length A008619. Row sums A000079. Alternating row sums A009545(n+1). %Y A034867 Column sequences (with certain offsets): A000027, A000292, A000389, A000580, A000582, A001288, ... (End) %K A034867 nonn,tabf,easy,changed %O A034867 0,2 %A A034867 _N. J. A. Sloane_ %E A034867 More terms from _Emeric Deutsch_, Apr 01 2005