The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A155826 Triangle T(n, k) = binomial(n, k) + binomial(k*(n-k), n) + 2*(-1)^n*StirlingS1(n, k)*StirlingS1(n, n-k), read by rows. 2
4, 1, 1, 1, 4, 1, 1, 15, 15, 1, 1, 76, 249, 76, 1, 1, 485, 3516, 3516, 485, 1, 1, 3606, 46623, 101354, 46623, 3606, 1, 1, 30247, 617541, 2388107, 2388107, 617541, 30247, 1, 1, 282248, 8416315, 51483931, 91651662, 51483931, 8416315, 282248, 1, 1, 2903049, 119667766, 1071669632, 3021085118, 3021085118, 1071669632, 119667766, 2903049, 1 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
T(n, k) = binomial(n, k) + binomial(k*(n-k), n) + 2*(-1)^n*StirlingS1(n, k) * StirlingS1(n, n-k).
Sum_{k=0..n} T(n, k) = 2^n + 2*342111(n) + Sum_{k=0..n} binomial(k*(n-k), n). - G. C. Greubel, Jun 03 2021
EXAMPLE
Triangle begins as:
4;
1, 1;
1, 4, 1;
1, 15, 15, 1;
1, 76, 249, 76, 1;
1, 485, 3516, 3516, 485, 1;
1, 3606, 46623, 101354, 46623, 3606, 1;
1, 30247, 617541, 2388107, 2388107, 617541, 30247, 1;
1, 282248, 8416315, 51483931, 91651662, 51483931, 8416315, 282248, 1;
MATHEMATICA
T[n_, k_]:= Binomial[n, k] + Binomial[k*(n-k), n] + 2*(-1)^n*StirlingS1[n, k]*StirlingS1[n, n-k];
Table[T[n, k], {n, 0, 12}, {k, 0, n}]//Flatten (* modified by G. C. Greubel, Jun 03 2021 *)
PROG
(Magma)
A155826:= func< n, k | Binomial(n, k) + Binomial(k*(n-k), n) + 2*(-1)^n*StirlingFirst(n, k)*StirlingFirst(n, n-k) >;
[A155826(n, k): k in [0..n], n in [0..12]]; // G. C. Greubel, Jun 03 2021
(Sage)
def A155826(n, k): return binomial(n, k) + binomial(k*(n-k), n) + 2*stirling_number1(n, k)*stirling_number1(n, n-k)
flatten([[A155826(n, k) for k in (0..n)] for n in (0..12)]) # G. C. Greubel, Jun 03 2021
CROSSREFS
Sequence in context: A327939 A365837 A369669 * A273711 A340227 A351942
KEYWORD
nonn,tabl
AUTHOR
Roger L. Bagula, Jan 28 2009
EXTENSIONS
Edited by G. C. Greubel, Jun 03 2021
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 21 13:44 EDT 2024. Contains 372738 sequences. (Running on oeis4.)