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.

A140997 Triangle G(n,k) read by rows, for 0 <= k <= n, where G(n, 0) = G(n+1, n+1) = 1, G(n+2, n+1) = 2, G(n+3, n+1) = 4, and G(n+4, m) = G(n+1, m-1) + G(n+1, m) + G(n+2, m) + G(n+3, m) for n >= 0 and m = 1..n+1.

This page as a plain text file.
%I A140997 #62 Jan 28 2024 14:31:20
%S A140997 1,1,1,1,2,1,1,4,2,1,1,8,4,2,1,1,15,9,4,2,1,1,28,19,9,4,2,1,1,52,40,
%T A140997 19,9,4,2,1,1,96,83,41,19,9,4,2,1,1,177,170,88,41,19,9,4,2,1,1,326,
%U A140997 345,188,88,41,19,9,4,2,1,1,600,694,400,189,88,41,19,9,4,2,1,1,1104,1386,846,406,189,88,41,19,9,4,2,1,1,2031,2751,1779,871,406,189,88,41,19,9,4,2,1,1,3736,5431,3719,1866,872,406,189,88,41,19,9,4,2,1
%N A140997 Triangle G(n,k) read by rows, for 0 <= k <= n, where G(n, 0) = G(n+1, n+1) = 1, G(n+2, n+1) = 2, G(n+3, n+1) = 4, and G(n+4, m) = G(n+1, m-1) + G(n+1, m) + G(n+2, m) + G(n+3, m) for n >= 0 and m = 1..n+1.
%C A140997 From _Petros Hadjicostas_, Jun 12 2019: (Start)
%C A140997 This is a mirror image of the triangular array A140994. The current array has index of asymmetry s = 2 and index of obliqueness (obliquity) e = 0. Array A140994 has the same index of asymmetry, but has index of obliqueness e = 1. (In other related sequences, the author uses the letter y for the index of asymmetry and the letter z for the index of obliqueness, but on the stone slab that appears over a tomb in a picture that he posted in those sequences, the letters s and e are used instead. See, for example, the documentation for sequences A140998, A141065, A141066, and A141067.)
%C A140997 In general, if the index of asymmetry (from the Pascal triangle A007318) is s, then the order of the recurrence is s + 2 (because the recurrence of the Pascal triangle has order 2). There are also s + 2 infinite sets of initial conditions (as opposed to the Pascal triangle, which has only 2 infinite sets of initial conditions, namely, G(n, 0) = G(n+1, n+1) = 1 for n >= 0).
%C A140997 Pascal's triangle A007318 has s = 0 and is symmetric, arrays A140998 and A140993 have s = 1 (with e = 0 and e = 1, respectively), and arrays A140996 and A140995 have s = 3 (with e = 0 and e = 1, respectively).
%C A140997 (End)
%H A140997 Robert Price, <a href="/A140997/b140997.txt">Table of n, a(n) for n = 0..1325</a>
%H A140997 Juri-Stepan Gerasimov, <a href="/A140998/a140998.jpg">Stepan's triangles and Pascal's triangle are connected by the recurrence relation ...</a>
%F A140997 From _Petros Hadjicostas_, Jun 12 2019: (Start)
%F A140997 G(n, k) = A140994(n, n-k) for 0 <= k <= n.
%F A140997 Bivariate g.f.: Sum_{n,k >= 0} G(n,k)*x^n*y^k = (1 - x - x^2 - x^3 + x^2*y + x^4*y)/((1 - x) * (1 - x*y) * (1 - x - x^2 - x^3 - x^3*y)).
%F A140997 Differentiating once w.r.t. y and setting y = 0, we get the g.f. of column k = 1: x/((1 - x) * (1 - x - x^2 - x^3)). This is the g.f. of sequence A008937.
%F A140997 (End)
%e A140997 Triangle begins:
%e A140997   1
%e A140997   1   1
%e A140997   1   2   1
%e A140997   1   4   2   1
%e A140997   1   8   4   2   1
%e A140997   1  15   9   4   2  1
%e A140997   1  28  19   9   4  2  1
%e A140997   1  52  40  19   9  4  2  1
%e A140997   1  96  83  41  19  9  4  2 1
%e A140997   1 177 170  88  41 19  9  4 2 1
%e A140997   1 326 345 188  88 41 19  9 4 2 1
%e A140997   1 600 694 400 189 88 41 19 9 4 2 1
%e A140997   ...
%e A140997 E.g., G(14, 2) = G(11, 1) + G(11, 2) + G(12, 2) + G(13, 2) = 600 + 694 + 1386 + 2751 = 5431.
%t A140997 nlim = 50;
%t A140997 Do[G[n, 0] = 1, {n, 0, nlim}];
%t A140997 Do[G[n + 1, n + 1] = 1, {n, 0, nlim}];
%t A140997 Do[G[n + 2, n + 1] = 2, {n, 0, nlim}];
%t A140997 Do[G[n + 3, n + 1] = 4, {n, 0, nlim}];
%t A140997 Do[G[n + 4, m] =
%t A140997    G[n + 1, m - 1] + G[n + 1, m] + G[n + 2, m] + G[n + 3, m], {n, 0,
%t A140997    nlim}, {m, 1, n + 1}];
%t A140997 A140997 = {}; For[n = 0, n <= nlim, n++,
%t A140997  For[k = 0, k <= n, k++, AppendTo[A140997, G[n, k]]]];
%t A140997 A140997 (* _Robert Price_, Aug 25 2019 *)
%Y A140997 Cf. A007318, A008937, A140993, A140994, A140995, A140996, A140998, A141015, A141018, A141020, A141021, A141065, A141066, A141067.
%K A140997 nonn,tabl
%O A140997 0,5
%A A140997 _Juri-Stepan Gerasimov_, Jul 08 2008
%E A140997 Typo in definition corrected by _R. J. Mathar_, Sep 19 2008
%E A140997 Name edited by and more terms from _Petros Hadjicostas_, Jun 12 2019
%E A140997 Deleted extraneous term at a(29) by _Robert Price_, Aug 25 2019
%E A140997 Added 13 missing terms at a(79) by _Robert Price_, Aug 25 2019