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!)
A157277 Even only third term general recursion triangle sequence: Tent even function:f(n,k)=If[k <= Floor[n/2], 2*k, 2*(n - k)]; Recursion function:m=2; A(n,k,m)= ( m*(n - k) + 1)*A(n - 1, k - 1, m) + (m*k + 1)*A( n - 1, k, m) + m*f(n, k)*A(n - 2, k - 1, m). 1
1, 1, 1, 1, 10, 1, 1, 39, 39, 1, 1, 128, 470, 128, 1, 1, 397, 3558, 3558, 397, 1, 1, 1206, 22387, 55452, 22387, 1206, 1, 1, 3635, 128377, 632343, 632343, 128377, 3635, 1, 1, 10924, 698788, 6107192, 12269406, 6107192, 698788, 10924, 1, 1, 32793, 3686880 (list; table; graph; refs; listen; history; text; internal format)
OFFSET

0,5

COMMENTS

Row sums are:

{1, 2, 12, 80, 728, 7912, 102640, 1528712, 25903216, 489632080, 10250405568,...}.

LINKS

Table of n, a(n) for n=0..47.

FORMULA

Tent even function:f(n,k)=If[k <= Floor[n/2], 2*k, 2*(n - k)];

Recursion function:m=2;

A(n,k,m)= ( m*(n - k) + 1)*A(n - 1, k - 1, m) +

(m*k + 1)*A( n - 1, k, m) +

m*f(n, k)*A(n - 2, k - 1, m).

EXAMPLE

{1},

{1, 1},

{1, 10, 1},

{1, 39, 39, 1},

{1, 128, 470, 128, 1},

{1, 397, 3558, 3558, 397, 1},

{1, 1206, 22387, 55452, 22387, 1206, 1},

{1, 3635, 128377, 632343, 632343, 128377, 3635, 1},

{1, 10924, 698788, 6107192, 12269406, 6107192, 698788, 10924, 1},

{1, 32793, 3686880, 53375112, 187721254, 187721254, 53375112, 3686880, 32793, 1},

{1, 98402, 19079273, 437314440, 2481082814, 4375255708, 2481082814, 437314440, 19079273, 98402, 1}

MATHEMATICA

Clear[A, f, n, k, m];

f[n_, k_] := If[k <= Floor[n/2], 2*k, 2*(n - k)];

A[n_, 0, m_] := 1; A[n_, n_, m_] := 1;

A[n_, k_, m_] := (m*(n - k) + 1)*A[n - 1, k - 1, m] + (m*k + 1)*A[n - 1, k, m] + m*f[n, k]*A[n - 2, k - 1, m];

Table[A[n, k, m], {m, 0, 10}, {n, 0, 10}, {k, 0, n}];

Table[Flatten[Table[Table[A[n, k, m], {k, 0, n}], {n, 0, 10}]], {m, 0, 10}]

Table[Table[Sum[A[n, k, m], {k, 0, n}], {n, 0, 10}], {m, 0, 10}];

CROSSREFS

Sequence in context: A176491 A008958 A168524 * A157629 A154336 A174109

Adjacent sequences:  A157274 A157275 A157276 * A157278 A157279 A157280

KEYWORD

nonn,tabl,uned

AUTHOR

Roger L. Bagula, Feb 26 2009

STATUS

approved

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 February 25 22:40 EST 2020. Contains 332268 sequences. (Running on oeis4.)