login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A157151 Triangle read by rows: A(n,0)=A(n,n)=1 and A(n,k)= (5*(n-k)+1)*A(n-1,k-1) + (5*k+1)*A(n-1,k) + 5*k*(n-k)*A(n-2,k-1) for 1<=k<n. 1
1, 1, 1, 1, 17, 1, 1, 123, 123, 1, 1, 769, 3046, 769, 1, 1, 4655, 49500, 49500, 4655, 1, 1, 27981, 673015, 1721070, 673015, 27981, 1, 1, 167947, 8363421, 44640435, 44640435, 8363421, 167947, 1, 1, 1007753, 98882848, 982172031, 2012583870, 982172031 (list; table; graph; refs; listen; history; text; internal format)
OFFSET

0,5

COMMENTS

The row sums are 1, 2, 19, 248, 4586, 108312, 3123064, 106343608, 4176709136, 185878799152, 9244524469984,...

LINKS

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

EXAMPLE

1;

1, 1;

1, 17, 1;

1, 123, 123, 1;

1, 769, 3046, 769, 1;

1, 4655, 49500, 49500, 4655, 1;

1, 27981, 673015, 1721070, 673015, 27981, 1;

1, 167947, 8363421, 44640435, 44640435, 8363421, 167947, 1;

1, 1007753, 98882848, 982172031, 2012583870, 982172031, 98882848, 1007753, 1;

1, 6046599, 1135746726, 19532828674, 72264777576, 72264777576, 19532828674, 1135746726, 6046599, 1;

MAPLE

A157151 := proc(n, k)

    option remember;

    if k < 0 or k> n then

        0;

    elif k = 0 or k = n then

        1;

    else

        (5*(n-k)+1)*procname(n-1, k-1)

        +(5*k+1)*procname(n-1, k)

        +5*k*(n-k)*procname(n-2, k-1) ;

    end if;

end proc:

seq(seq(A157151(n, k), k=0..n), n=0..10) ; # R. J. Mathar, Feb 06 2015

MATHEMATICA

Clear[A, n, k, m];

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*k*(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}]

CROSSREFS

Sequence in context: A157274 A218115 A144442 * A176794 A176244 A022180

Adjacent sequences:  A157148 A157149 A157150 * A157152 A157153 A157154

KEYWORD

nonn,tabl,easy

AUTHOR

Roger L. Bagula, Feb 24 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 April 26 11:46 EDT 2019. Contains 322472 sequences. (Running on oeis4.)