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.

User: Russell Jay Hendel

Russell Jay Hendel's wiki page.

Russell Jay Hendel has authored 5 sequences.

A343125 Triangle T(k, n) = (n+3)*(k-n) - 4, k >= 2, 1 <= n <= k-1, read by rows.

Original entry on oeis.org

0, 4, 1, 8, 6, 2, 12, 11, 8, 3, 16, 16, 14, 10, 4, 20, 21, 20, 17, 12, 5, 24, 26, 26, 24, 20, 14, 6, 28, 31, 32, 31, 28, 23, 16, 7, 32, 36, 38, 38, 36, 32, 26, 18, 8, 36, 41, 44, 45, 44, 41, 36, 29, 20, 9, 40, 46, 50, 52, 52, 50, 46, 40, 32, 22, 10
Offset: 2

Author

Russell Jay Hendel, Apr 06 2021

Keywords

Comments

T(k, n) is even if k is odd.
T(k, n) = T(k, n+1) for n = k/2 - 2 if k >= 6 is even.
T(k, n) = T(k, n+2) for n = (k-1)/2 - 2 if k >= 7 is odd.
For fixed n, T(k, n) is linear in k.
The T(k, j) contribute coefficients to a closed formula for the sum of the first n+1 squares of the k-generalized Fibonacci numbers, F(k, j) = A092921(k, j). See A343138 for sums of squares of F(k, j). See the Formula section for closed formula. Although other sequences occur in coefficients in the closed formula for sums of squares, they are linear in nature. All coefficient sequences are mentioned in the arXiv link. The closed formula generalizes results of Schumacher (see References) for the cases k=3 and k=4 with a uniform proof method (see arXiv link).

Examples

			Triangle T(k, n) begins:
   k \ n|  1  2  3  4  5  6  7  8  9  10 11
  ------+----------------------------------
   2    |  0
   3    |  4  1
   4    |  8  6  2
   5    | 12 11  8  3
   6    | 16 16 14 10  4
   7    | 20 21 20 17 12  5
   8    | 24 26 26 24 20 14  6
   9    | 28 31 32 31 28 23 16  7
  10    | 32 36 38 38 36 32 26 18  8
  11    | 36 41 44 45 44 41 36 29 20  9
  12    | 40 46 50 52 52 50 46 40 32 22 10
.
The following are the closed formulas for k = 3, 4 for A(k, n) = Sum_{m=0..n} F(k, m)^2, with F(k, n) = A092921(k, n), the k-generalized Fibonacci numbers, and A(k, n) = A343138(k, n), the sum of squares of F(k, n). These formulas are derived from the closed formula in the formula section. Of course further simplifications are possible. For k = 2, T(2, 1) = 0 so illustrations start with k = 3.
k | Formula
--+--------------------------------------------------------
3 | Sum_{m=0..n} F(3,m)^2 = (1/4)*(2*F(3,n)*F(3,n+2) + 4*F(3,n+1)*F(3,n+2) - (k - 2)*F(3,n)^2 - T(3,1)*F(3,n+1)^2 - T(3,2)*F(3,n+2)^2 + 1).
4 | Sum_{m=0..n} F(3,m)^2 = (1/6)*(-2*F(4,n)*F(4,n+1) + 2*F(4,n)*F(4,n+3) + 4*F(4,n+1)*F(4,n+3) + 6*F(4,n+2)*F(4,n+3) - (k-2)*F(4,n)^2 - T(4,1)*F(4,n+1)^2 - T(4, 2)*F(4,n+2)^2 - T(4,3)*F(4,n+3)^2 + 2).
		

References

  • Raphael Schumacher, How to Sum the Squares of the Tetranacci Numbers and the Fibonacci m-step Numbers, Fibonacci Quarterly, 57, (2019), 168-175.
  • Raphael Schumacher, Explicit Formulas for Sums Involving the Squares of the First n Tribonacci Numbers, Fibonacci Quarterly, 58 (2020), 194-202.

Crossrefs

Programs

  • Maple
    T := (k, n) -> (n + 3)*(k - n) - 4:
    seq(print(seq(T(k, n), n=1..k-1)), k = 2..12); # Peter Luschny, Apr 02 2021
  • Mathematica
    Table[(n + 3) (k - n) - 4, {k, 2, 12}, {n, k - 1}] // Flatten (* Michael De Vlieger, Apr 06 2021 *)
  • PARI
    T(k,n)=(n + 3)*(k - n) - 4
    for(k = 2,12,for(n = 1,k - 1, print1(T(k,n),", ")))
    
  • Sage
    flatten([[(n+3)*(k-n) -4 for n in (1..k-1)] for k in (2..15)]) # G. C. Greubel, Nov 22 2021

Formula

Let F(k, n) = A092921(k, n), the k-generalized Fibonacci numbers. Let A(k, n) = A343138(k, n) = Sum_{m=0..n} F(k, m)^2, the sum of the first m+1 k-generalized Fibonacci numbers. Then, for k >= 2, a closed formula for A(k, n) is:
A(k, n) = (1/(2*k-2)) * (Sum_{j=0..k-2, m=j+1..k-1} 2*(j+1)*(m-k+1) * F(k, n+j) * F(k, n+m)) - (k-2)*F(k, n)^2 - Sum_{j=1..k}(T(k, j) * F(k, n+j)^2) + (k-2)).
From G. C. Greubel, Nov 22 2021: (Start)
T(2*n-2, n) = A028557(n-2), n >= 2.
T(4*n-6, n) = 2*A140672(n-2), n >= 2. (End)

A332636 Two-parameter family of recursively defined triangles, T(m,t), whose rows right-padded with zeros appear in the limiting sequence of families of certain linear recursive sequences. The data presents the sequence of triangles T(2,t) by ascending antidiagonals.

Original entry on oeis.org

1, 1, -1, 1, -1, -1, 1, -1, -1, 2, 1, -1, -1, 2, 1, 1, -1, -1, 2, -1, -3, 1, -1, -1, 2, -1, 2, 1, 1, -1, -1, 2, -1, 0, -3, 1, 1, -1, -1, 2, -1, 0, 2, 1, -3, 1, -1, -1, 2, -1, 0, 0, -3, 1, -1, 1, -1, -1, 2, -1, 0, 0, 2, 1, -3, 9, 1, -1, -1, 2, -1, 0, 0, 0, -3, 1, 3, -4, 1, -1, -1, 2, -1, 0, 0, 0, 2, 1, -3, -5, -6, 1, -1, -1, 2, -1, 0, 0, 0, 0, -3, 1, 3, 10, 5
Offset: 1

Author

Russell Jay Hendel, Feb 17 2020

Keywords

Comments

For fixed t >= 1, m >= 1 we can define a triangle as follows: Let T(1,1)=1, T(1,2)=-1, and T(1,x)=0, if x < 1 or x > 2. For p >= 1, define T(p+1,q) = -(m-1)*T(p,q) + (m-1)*T(p,q-1) + 2*T(p,q-1-t) - T(p,q-2-t).
It is easy to prove that T(p,1) = -(m-1)^(p-1) and T(p,2+(p-1)*(t+2)) = (-1)^p. Thus we may speak of the p-th row, T(p), of the triangle, whose length is 2+(p-1)*(t+2).
It is also easy to prove that the sum of T(p,q) for fixed p over all q is 0.
Using the same fixed t and m, we can define a family of recursive sequences whose k-th member, k >= t+3, is defined by the recursion G(n) = G(n-k) - Sum_{i=1..k-1} G(n-k+i) - (m-1)*G(n-k+t+1) with initial conditions G(1)=1, G(i)=0, i=2,3,...,k. Then for any fixed n, for all large k, the first k+(n-1)*(k-t-1) terms of G are 1, 0^{k-1}, T(1), 0^z(1), T(2), 0^z(2), ..., T(n), 0^z(n).
Proof: Recall that to every recursive sequence there is an underlying recursion and an associated characteristic polynomial. Furthermore, the sequences of two recursions (with the same initial conditions) are identical iff their characteristic polynomials are each divisible by the minimal polynomial of the sequence. Fix positive integers m and t. Let p(x) be the characteristic polynomial of the k-th order recursion: p(x) = -1 + x + x^2 + ... + x^k + (m-1)*x^(t+1). Let t(x) be the characteristic polynomial of the recursion for the sequence obtained from the triangle with rows of length k - t - 1 laid out row by row: t(x) = 1 - 2*x - (m-1)*x^(k-t-1) + (m-1)*x^(k-t) + x^(k+1). Then t(x)/p(x) = x - 1, proving that the two sequences are identical. The triangle appearance is driven by the large gap in exponents in t(x) (x^(k+1) versus x^(k-t)). This "naturally" allows writing the sequence in rows such that the previous row for the same column corresponds to the difference in positions (k+1) and (k-t).
For m=1, t=1 the triangle sequence, with zeros removed, becomes A118800.
The collection of k-th order recursions has a natural interpretation in terms of generalizations of the Fibonacci numbers. Define the Generalized Fibonacci numbers of order k by the recursion K(n) = Sum_{i=1..k} K(n-i), with initial conditions K(0)=0, K(i)=1, 1 <= i <= k-1. Further define G(n) = K(-n). (For k = 2, the [K(n)] are the Fibonacci numbers and for k = 3 they are the tribonacci numbers.) Then [G(n)] satisfies the recursion G(n) = G(n-k) - Sum_{i=1..k-1} G(n-k+i). (For purposes of reference later on we may suppose initial conditions G(i)=1, 1 <= i <= k-1, G(k)=0.) In other words, the recursions satisfied by the Generalized Fibonacci numbers over negative indices are identical to the recursions we presented in this OEIS sequence above with t = 1 and m = 1 and the resulting triangle [T(i, j)] satisfies almost the same recursion as in sequence A118800 (the reason for the difference lies in the initial conditions). More precisely, the first row of the triangle [T(1, 1), T(1, 2) = [0, -(k-3)]. Boundary conditions for the rightmost and leftmost diagonals are given as follows: For i >= 1, T(i, 1) = -(2^(i-1)-1) and T(i, i+1) = (-1)^i (k-2+(-1)^i). Then for i >= 2, 2 <= j <= i, T(i, j) = 2*T(i-1, j) - T(i-1, j-1), the recursion used for the triangle in A118800 and used in this OEIS sequence for the case t = 1 and m = 1. Paul Young (see link) gives a p-adic proof of the lack of zeros among negative indices for certain Generalized Fibonacci sequences. The study presented in this OEIS sequence arose while attempting to find an inductive proof of this result which however failed. However, Hendel made the following conjecture in the problem session at West Coast Number Theory (see link). Consistent with the observations made in this OEIS sequence, when the recursion (after the initial row of length k-1) is arranged in blocks of k, then the first k-1 rows are the triangle entries right-padded with ones. It is easy to prove that these rows (for k >= 4) have no zeros. Consistent with the results in this OEIS sequence, one can show that G(k^2-1) = K(-(k^2-k-1)) = T(k-1, k). Hendel conjectured that the absolute value of G(k^2-1) or T(-(k^2-k-1)) is a minimum over the rest of the sequence, that is, |G(k^2-1)| < G(n), n >= k^2. Although it is stated on the WCNT conference that some headway had been made, these attempts failed (so the conjecture is still open). The reason for reformulating this OEIS sequence using initial conditions of mostly zeros instead of ones is that the triangle boundaries also satisfy the triangle recursion and the right-padding of zeros is more natural than the right-padding of ones.

Examples

			The first 4 triangle rows of T(2,1).
   1 -1
  -1  2  1 -3   1
   1 -3 -1  9  -4 -6   5 -1
  -1  4  0 -17 14 21 -28 -2 15 -7 1
The first 3 triangle rows of T(2,2).
   1 -1
  -1  2 -1  2 -3  1
   1 -3  3 -5 10 -8 6 -8 5 -1
The first 3 triangle rows of T(2,3).
   1 -1
  -1  2 -1  0  2 -3  1
   1 -3  3 -1 -4 10 -8 2 4 -8 5 -1
The first 3 triangle rows of T(3,3).
   1  -1
  -2   4 -2  0  2 -3   1
   4 -12 12 -4 -8 20 -16 4 4 -8 5 1
The first 67 values (G(1)..G(67)) of the k=15th member of the family of recursive G sequences, with m=2, t=1, laid out as an initial row of 15 numbers followed by 4 rows of 13 members. As can be seen, the initial segments of lengths 2, 5, 8, 11 of rows 2 through 5 respectively are 1, -1 (2nd row), -1, 2, 1, -3, 1 (3rd row), 1, -3, -1, 9, -4, -6, 5, -1 (4th row), -1, 4, 0, -17, 14, 21, -28, -2, 15, -7, 1 (5th row) and these are identical to the first 4 triangle rows in the t=1, m=2 case confirming the empirical observation that both the triangle recursion and the family of G sequences give rise to the same triangles.
   1  0  0   0  0  0   0  0  0  0 0 0 0 0 0
   1 -1  0   0  0  0   0  0  0  0 0 0 0
  -1  2  1  -3  1  0   0  0  0  0 0 0 0
   1 -3 -1   9 -4 -6   5 -1  0  0 0 0 0
  -1  4  0 -17 14 21 -28 -2 15 -7 1 0 0
For m=2, the first 16 members of the first 14 triangles (t=1, t=2, ..., t=14) with each triangle laid out row by row. The ascending diagonals in the data section can be produced from this array.
t\n  | 1  2  3 4  5  6  7  8  9 10 11 12 13 14 15 16
-----+----------------------------------------------
t=1  | 1 -1 -1 2  1 -3  1  1 -3 -1  9 -4 -6  5 -1 -1
t=2  | 1 -1 -1 2 -1  2 -3  1  1 -3  3 -5 10 -8  6 -8
t=3  | 1 -1 -1 2 -1  0  2 -3  1  1 -3  3 -1 -4 10 -8
t=4  | 1 -1 -1 2 -1  0  0  2 -3  1  1 -3  3 -1  0 -4
t=5  | 1 -1 -1 2 -1  0  0  0  2 -3  1  1 -3  3 -1  0
t=6  | 1 -1 -1 2 -1  0  0  0  0  2 -3  1  1 -3  3 -1
t=7  | 1 -1 -1 2 -1  0  0  0  0  0  2 -3  1  1 -3  3
t=8  | 1 -1 -1 2 -1  0  0  0  0  0  0  2 -3  1  1 -3
t=9  | 1 -1 -1 2 -1  0  0  0  0  0  0  0  2 -3  1  1
t=10 | 1 -1 -1 2 -1  0  0  0  0  0  0  0  0  2 -3  1
t=11 | 1 -1 -1 2 -1  0  0  0  0  0  0  0  0  0  2 -3
t=12 | 1 -1 -1 2 -1  0  0  0  0  0  0  0  0  0  0  2
t=13 | 1 -1 -1 2 -1  0  0  0  0  0  0  0  0  0  0  0
t=14 | 1 -1 -1 2 -1  0  0  0  0  0  0  0  0  0  0  0
For m=3, the first 16 members of the first 14 triangles (t=1, t=2, ..., t=14) with each triangle laid out row by row.
t\n  | 1  2  3 4  5  6  7  8   9  10  11  12  13  14
-----+----------------------------------------------
t=1  | 1 -1 -2 4  0 -3  1  4 -12   4  16 -12  -4   5
t=2  | 1 -1 -2 4 -2  2 -3  1   4 -12  12 -12  20 -16
t=3  | 1 -1 -2 4 -2  0  2 -3   1   4 -12  12  -4  -8
t=4  | 1 -1 -2 4 -2  0  0  2  -3   1   4 -12  12  -4
t=5  | 1 -1 -2 4 -2  0  0  0   2  -3   1   4 -12  12
t=6  | 1 -1 -2 4 -2  0  0  0   0   2  -3   1   4 -12
t=7  | 1 -1 -2 4 -2  0  0  0   0   0   2  -3   1   4
t=8  | 1 -1 -2 4 -2  0  0  0   0   0   0   2  -3   1
t=9  | 1 -1 -2 4 -2  0  0  0   0   0   0   0   2  -3
t=10 | 1 -1 -2 4 -2  0  0  0   0   0   0   0   0   2
t=11 | 1 -1 -2 4 -2  0  0  0   0   0   0   0   0   0
t=12 | 1 -1 -2 4 -2  0  0  0   0   0   0   0   0   0
t=13 | 1 -1 -2 4 -2  0  0  0   0   0   0   0   0   0
t=14 | 1 -1 -2 4 -2  0  0  0   0   0   0   0   0   0
25 values, (K(0)..K(-24)) laid out in rows of 5, for the nonpositive indices of the Generalized Fibonacci numbers of order 5.
   0  -2   1   1   1
  -1  -4   4   1   1
  -3  -7  12  -2   1
  -7 -11  31 -16   4
		

Crossrefs

A118800 gives the nonzero entries of the sequence for t=1 and m=1.

Programs

  • PARI
    TRIANGLE(m,t,r)={\\Prints r rows of T(m,t)
    local(OFFSET,MAXLENGTH,i,j,T1,T2);OFFSET = t+2; MAXLENGTH=2+(r-1)*(t+2);
    T=matrix(r,OFFSET+MAXLENGTH,i,j,0); T[1,OFFSET+1]=1; T[1,OFFSET+2]=-1;
    for(i=2,r,for(j=OFFSET+1,OFFSET+MAXLENGTH,T[i,j]=-(m-1)*T[i-1,j]+(m-1)*T[i-1,j-1]+2*T[i-1,j-1-t]-T[i-1,j-2-t]));
    T2=matrix(r,MAXLENGTH,i,j,0);
    for(i=1,r,for(j=1,MAXLENGTH,T2[i,j]=T[i,OFFSET+j]));printp(T2); }
    
  • PARI
    RECURSION(m,t,k,r)={
    \\Prints (G(k+1)..G(k+r*(k-t-1))) of k-th recursion as r rows
    \\G is k-th member of recursive family with parameters m,t
    local(LENGTH, i,v,s,l);v=vector(k,i,0); LENGTH=k-t-1;
    G=vector(k+r*LENGTH,i,0);G[1]=1; R=vector(k,i,-1);R[1]=1;R[t+2]=-m;
    for(i=k+1,k+r*LENGTH, for(j=1,#v,v[j]=G[i-1-#v+j]);s=0;for(l=1,#v, s=s+R[l]*v[l];G[i]=s));
    G2=matrix(r,LENGTH,i,j,0);
    for(i=1,r,for(j=1,LENGTH,G2[i,j] = G[k+(i-1)*LENGTH+j]));printp(G2);}
    
  • PARI
    RECURSION2(k)={
    \\Prints (K(0)..K(-(k^2-k-1)) of Generalized Fibonacci numbers
    \\Prints k-1 rows (excluding initial conditions) of length k
    local(LENGTH, i,v,s,l);v=vector(k,i,0); LENGTH=k;r=k-1; G=vector(k+r*LENGTH,i,1);G[1]=k-1; R=vector(k,i,-1);R[1]=1;
    for(i=k+1,k+r*LENGTH, for(j=1,#v,v[j]=G[i-1-#v+j]);s=0;for(l=1,#v, s=s+R[l]*v[l];G[i]=s));
    G2=matrix(r,LENGTH,i,j,0);
    for(i=1,r,for(j=1,LENGTH,G2[i,j] = G[k+(i-1)*LENGTH+j]));printp(G2);}

Formula

Let T(1,1)=1, T(1,2)=-1, and T(1,x)=0, if x < 1 or x > 2. For p >= 1, define T(p+1,q) = -(m-1)*T(p,q) + (m-1)*T(p,q-1) + 2*T(p,q-1-t) - T(p,q-2-t).
Alternatively, for k >= t+3, define the k-th member of a family of recursions by G(n) = G(n-k) - Sum_{i=1..k-1} G(n-k+i) - (m-1)*G(n-k+t+1) and initial conditions G(1)=1, G(i)=0, i=2,3,...,k. Then for any fixed n, for all large k, the first k+(n-1)*(k-t-1) terms of G are 1, 0^(k-1), T(1), 0^z(1), T(2), 0^z(2), ..., T(n), 0^z(n) with the z(i) positive integers, with T(i) rows of a triangle with length 2+(i-1)*(t+2) and such that length(T(i)) + z(i) = k-t-1.

A264038 Convolution of Lucas and Jacobsthal numbers.

Original entry on oeis.org

0, 2, 3, 10, 20, 47, 98, 210, 435, 902, 1848, 3775, 7670, 15542, 31403, 63330, 127500, 256367, 514938, 1033450, 2072675, 4154702, 8324528, 16673535, 33386670, 66837422, 133778523, 267724810, 535721060, 1071881327, 2144473298, 4290096450, 8582053395, 17167117142, 34339105128, 68686091455, 137384934950, 274790503142, 549614391563, 1099282801650
Offset: 0

Author

Russell Jay Hendel, Nov 01 2015

Keywords

Comments

The main theorem of the Griffith-Bramham paper found in the LINKS section is the equivalence of the following alternate definitions for a(n). (I) a(n) equals the convolution of the Lucas numbers (A000032) and the Jacobsthal numbers (A001045), where, as usual, the m-th term of the convolution of sequences {b(n)}{n>=0} and {c(n)}{n>-0} equals Sum_{t+s=m} b(t)* c(s). (II) a(n) = A014551(n+1)-A000032(n+1), the difference of the Lucas-Jacobsthal numbers and the Lucas numbers with a shift of 1. The authors prove the equivalence of (I) and (II) using the generating function method.
Referring to the simplicity of definition (II), the authors formulate the following open question: "Since the convolution takes such a simple form, we ask whether it is possible to obtain a purely combinatorial proof of this result."
I would suggest another open question: Are there convolutions of other linear homogeneous recurrences with constant coefficients which are equivalent to very simple forms?

Examples

			Let L(n)=A000032(n), j(n)=A014551(n), and J(n)=A001045(n). Then using the convolution definition (I), a(3)=10 because a(3) = L(0)J(3) + L(1)J(2) + L(2)J(1) + L(3)J(0) = 2*3 + 1*1 + 3*1 + 4*0 = 10; similarly, using definition (II) we have a(3) = j(4) - L(4) = 17 - 7 = 10.
		

Crossrefs

Equals convolution of Lucas numbers (A000032) and Jacobsthal numbers (A001045); also equals difference of Lucas-Jacobsthal numbers (A014551) minus Lucas numbers (A000032) with a shift of 1.

Programs

  • Mathematica
    LinearRecurrence[{1,2},{1,5},40]-LinearRecurrence[{1,1},{1,3},40]
    LinearRecurrence[{2,2,-3,-2},{0,2,3,10},50] (* Harvey P. Dale, Dec 11 2016 *)
  • PARI
    /* Prints first 40 terms of sequence a(n) */
    Lucas(n)={if(n==0,2,if(n==1,1,Lucas(n-1)+Lucas(n-2)));}
    j(n)={if(n==0,2,if(n==1,1,j(n-1)+2*j(n-2)));} /*Lucas-Jacobsthal*/
    a(n)=j(n+1)-Lucas(n+1);
    for(n=0,40,print(a(n)));
    
  • PARI
    concat(0, Vec(-x*(x-2)/((x+1)*(2*x-1)*(x^2+x-1)) + O(x^100))) \\ Colin Barker, Nov 02 2015

Formula

a(n) = A014551(n+1)- A000032(n+1).
G.f.: 2/(1-2x)-1/(1+x)-alpha/(1-alpha*x)-beta/(1-beta*x) with alpha=(1+sqrt(5))/2 and beta=-1/alpha.
From Colin Barker, Nov 02 2015: (Start)
a(n) = 2*a(n-1)+2*a(n-2)-3*a(n-3)-2*a(n-4) for n > 3.
G.f.: 2/(1-2x)-1/(1+x)-alpha/(1-alpha*x)-beta/(1-beta*x)=-x*(x-2) / ((x+1)*(2*x-1)*(x^2+x-1)), with alpha = (sqrt(5)+1)/2, and beta=-1/alpha.(End)

A252840 Coefficients of G_i(x) with G_0 = 1, G_1 = 1+x, G_n = (1-2*x)*G_{n-1}+(x-x^2)*G_{n-2}.

Original entry on oeis.org

1, 1, 1, 1, 0, -3, 1, -1, -3, 5, 1, -2, -2, 8, -7, 1, -3, 0, 10, -15, 9, 1, -4, 3, 10, -25, 24, -11, 1, -5, 7, 7, -35, 49, -35, 13, 1, -6, 12, 0, -42, 84, -84, 48, -15, 1, -7, 18, -12, -42, 126, -168, 132, -63, 17
Offset: 0

Author

Russell Jay Hendel, Dec 22 2014

Keywords

Comments

There are 3 equivalent ways to define this sequence:
#1) Recursively defined polynomial sequence:
G_0(x)=1, G_1(x)=1+x; G_n=(1-2x)G_{n-1}+(x-x^2)G_{n-2}. One can then form a triangle whose n-th row lists the coefficients of G_n(x) starting from the constant term. The list of these rows forms the sequence. It follows that an explicit formula for G_n is G_n(x)=(1+2x)(1-x)^n-2x(-x)^n.
#2) Recursively defined triangle:
Define an array g^(i)n as follows: i) Leftmost column: g^(0)_n=1, n >=0; ii) Define the diagonal sequence D_n = g^(n)_n by D_0=0, D_1=1 and D_n=-2D{n-1}- D_{n-2}; iii) Boundary conditions: g^(i)n=0 if i<0, n<0 or n>i; iv) g^(i)_n - g^(i){n-1}= -g^(i-1)_{n-1} for n>=2, 1 <=i <=n-1. It follows that g^(i)_n = -(-1)^j(2 C(n,j-1)-C(n,j)) with C(n,j) the binomial coefficient.
#3) Polynomial columns:
The polynomials G_n = (1+2x)(1-x)^n-2x(-x)^n have interesting limit properties. (All limits are for fixed x as n goes to infinity.)
1) lim G_n(-1) = lim -(2^n-2) = minus infinity
2) lim G_n(x) = minus infinity, for -1 <= x < -1/2
3) lim G_n(-1/2) = lim (1/2)^n =0
4) lim G_n(x) = positive infinity, for -1/2 < x <0
5) lim G_n(0) = 1 (in fact G_n(0)=1 for all n)
6) lim G_n(x) = 0, for 0
7) lim G_n(1) = lim -(-1)^n 2, diverges by oscillation
There are other interesting limits. For example, although for all n, G_n(0)=1, nevertheless lim G_n(1/n) = 1/e.

Examples

			G_0(x)=1, G_1(x)=1+x; G_2(x)=(1-2x)G_1(x)+(x-x^2)G_0(x)=1-3x^2. Hence the 0th row is 1; the 1st row is 1,1; the 2nd row is 1,0,-3.
Similarly we may give the triangle by columns: For example, the 2nd column is described by the polynomial (-1)^2 1/2! (n-(3*2-1))(n)_1 = -1/2(n-5)n which for n>=2 generates the values -3,-3,-2,0,3,7,12 which are the values of the 2nd column of the triangle starting from the 2nd row.
The first few rows of the triangle are
  1;
  1,   1;
  1,   0,   -3;
  1,  -1,   -3,  5;
  1,  -2,   -2,  8,  -7;
  1,  -3,    0, 10,  -15,  9;
		

References

  • Russell Jay Hendel, "Polynomial Convergence of Recursively Defined Polynomials", West Coast Number Theory Conference, Pacific Grove, 2014.

Programs

  • Maple
    g:= proc(n) option remember; `if`(n<2, 1+n*x,
          expand((1-2*x)*g(n-1)+(x-x^2)*g(n-2)))
        end:
    T:= n-> (p-> seq(coeff(p, x, i), i=0..n))(g(n)):
    seq(T(n), n=0..12);  # Alois P. Heinz, Dec 22 2014
  • Mathematica
    row[n_] := CoefficientList[(1+2x)(1-x)^n-2x(-x)^n, x]; Array[row, 10, 0] // Flatten (* Jean-François Alcover, May 24 2016 *)
  • PARI
    /* using FORMULA #2 */
    /* Function Triangle produces first n rows of coefficients of the recursively defined polynomials */
    Triangle(n)={
    m=matrix(n,n,i,j,0);
    /* Leftmost column is 1*/
    for(i=1,n,m[i,1]=1);
    /* Rightmost diagonal are odds with alternating sign */
    for(i=1,n,m[i,i]=(-1)^i *(2*i-3));
    /* Body of triangle based on recursive formula */
    for(i=3,n,for(j=2,i-1,m[i,j]=m[i-1,j]-m[i-1,j-1]));
    m
    }
    /* By calling Triangle(10) one obtains the first 10 rows of the triangle corresponding to the entry in the DATA step */

Formula

Method #1) G_0(x)=1; G_1(x)=1+x; G_n(x)=(1-2x)G_{n-1}(x) + (x-x^2) G_{n-2}(x). The n-th row of the triangle lists the coefficients of G_n(x)=(1+2x)(1-x)^n-2x(-x)^n.
Method #2) g^(0)n=1; D=g^(n)_n with D_0=1=D_1 and D_n=-2D{n-1}- D_{n-2}; g^(i)n =g^(i){n-1} - g^(i-1)_{n-1}, n >=2 and 1 <= i <= n-1. Hence g^(i)_n = -(-1)^i (2C(n,i-1)-C(n,i))
Method #3) g^(0)n=1; g^(i)_n= (-1)^i 1/i! (n-(3i-1))(n){i-1}, i>=1, n>=i, with (n)_m the falling factorial. For each i, the g^(i)_n are a polynomial of degree i describing the triangle entry in row n and column i with n>=i.

A244608 Jump Sum Recursion Triangle.

Original entry on oeis.org

0, 0, 1, 1, 1, 4, 1, 11, -1, 1, 26, -27, 1, 57, -289, -1, 1, 120, -2160, -256, 1, 247, -13359, -13604, 1, 1, 502, -73749, -383750, 3125, 1, 1013, -378283, -7682623, 1006734, 1, 1, 2036, -1845522, -124221692, 126018521, 46656
Offset: 1

Author

Russell Jay Hendel, Jul 01 2014

Comments

The Jump Sum Recursion Triangle is defined as a row by row reading of the coefficients of the recursions satisfied by the error term between Pascal-Triangle j-jump sums and 2^(jm)/j. To clarify this, define the j-jump sum, S(j,n)=Sum_{m= -oo..oo} C(n,jm), with C(x,y) the binomial coefficient if 0<=y<=x and 0 otherwise. It is known that S(1,n)=2^n and S(2,n)=2^(n-1). This suggests the heuristic that S(j,n) is approximately 2^n/j and motivates looking at the integral error terms, jS(j,n)-2^n. So, for fixed j, define the sequence, G(j,m)=G(m)=jS(j,mj)-2^(mj), and let p(j,X) be the characteristic polynomials of the sequence. The Jump Sum Recursion Triangle is defined as a row by row reading of the coefficients of p(1,X), p(2,X), p(3, X), p(4, X)... .

Examples

			Suppose j=3. Then using our definition, S(3,3)=C(3,0)+C(3,3)=2, S(3,6)=C(6,0)+C(6,3)+C(6,6) = 1+20+1=22 (To explain the name "jump sum," we note, that we don't sum the Pascal Row across, but jump in steps of 3 when taking the sum). G(3,1)=G(1)=3S(3,3)-2^3=-2 and G(2)=3S(3,6)-2^6=2. Clearly, G(2)=-G(1). In fact, the sequence G(m)= G(3,m) - -2,2,-2,2,... - satisfies the recursion G(m)+G(m-1)=0 with characteristic equation X+1. Hence, the 3rd row in the Jump Sum Recursion Triangle is 1,1. Similarly, we can calculate that the sequence G(m)=G(m,4) which is, -8,32,-256,1024,..., which satisfies the recursions G(m)+4G(m-1)=0 with characteristic equation X+4. Hence, the 4th row of the Jump Sum Recursion Triangle is 1,4.  Since S(n,1)=2^n and S(n,2)=2^(n-1), we have 1S(n,1)-2^n=0 and 2S(n,2)-2^(n-1)=0 showing that the sequences G(m,1) and G(m,2) satisfy the zero recursion, G(m)=0. Hence the first two rows of the Jump Sum triangle are identically 0.
The Jump Sum Triangle starts:
0;
0;
1, 1;
1, 4;
1, 11, -1;
1, 26, -27;
1, 57, -289, -1;
1, 120, -2160, -256;
1, 247, -13359, -13604, 1;
1, 502, -73749, -383750, 3125;
...
		

References

  • Charles Cook and Rebecca Hillman, Some Jump Sum Patterns For the Rows of Pascal's and Related Triangles, Congressus Numerantium, 2010, pp. 255-267.
  • Russell Jay Hendel, Jump Sum Recursions, 16th Fibonacci Conference, Rochester NY, 2014.

Programs

  • PARI
    /* Function CreateTriangle produces first r rows of the Jump Sum Recursion Triangle*/
    CreateTriangle(r) ={
    /* First two rows created manually */
    print(1, "    ", [0]);
    print(2, "    ", [0]);
    /* Create r rows of Pascal's triangle: m[i,j]= C(i,j)*/
    m=matrix(r,r,i,j,0);
    m[1,1]=1;
    m[1,2]=1;
    for(i=2,r,m[i,1]=1);
    for(i=2,r,for(j=2,r,m[i,j]=m[i-1,j]+m[i-1,j-1]));
    /*Loop to create rows 3,4,5,...,r of Jump Sum Recursion Triangle */
    for(o=3,r,
    /* We create a modified Binomial Coefficient Circulant Matrix,n. The first row of n is 2,C(o,2),C(o,3),..., C(o,o-1).  To motivate this we extend our definitions above as follows:Define S(j,n,k)=Sum_{m=-oo..oo} C(n,k+jm), define G(m,k)=jS(j,mj,k)-2^(mj), and define G(m)= . Then n*G(m) = G(m+1). This gives a matrix representation for the sequence G. The j-th row of the Jump Sum Recursion Triangle which are the coefficients of the recursion satisfied by G is equal to the minimal polynomial satisfied by n. Hence we can print out the triangle by printing out the coefficients of the minimal polynomials*/
    n=matrix(o,o,i,j,0);
    for(i=1,o,n[i,i]=2);
    for(j=1,o-1,for(i=1,o-j,n[i,i+j]=m[o,o+1-j]));
    for(i=2,o,for(j=1,i-1,n[i,j]=m[o,o+1-i+j]));
    /* Construct minimal polynomial by multiplying all factors
    without multiplicity and avoiding factors X-2^n and X */
      f=factor(charpoly(n));
    g=length(f[,1]);
    h=1;
    for(i=2,g,if(f[i,1]==x,h,h=h*f[i,1]));
    print(o,"   ",Vec(h));
    )};
    /*The first 11 rows of the Jump Sum Recursion Triangle, listed in the DATA step, can be obtained by calling CreateTriangle with argument r=11.*/
    CreateTriangle(11);

Formula

The following theorem can be proved: For j>=3, let w be a primitive j-th root of unity. Let L(k)=Sum_{p=0..j-1} c(p)w^(kp) with c(0)=2 and c(i)=C(j,i) if i>0. Then p(j,X)=(X-L(1))(X-L(2))...(X-L([(n-1)/2])). For example: If j=3, then w is a primitive cube root of unity and [(3-1)/2]=1. We have L(1)=2+3w+3w^2=-1 and X-L(1)=X+1 which is p(3,X) and corresponds to the 3rd row (terms 3 and 4) in the Jump Sum Recursion Triangle.