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!)
A174388 Triangle T(n, k) = c(n, q)/c(k, q) if k <= floor(n/2), otherwise c(n, q)/c(n-k, q), where c(n, q) = Product_{j=1..n} (1 - q^j) and q = 3, read by rows. 3
1, 1, 1, 1, -8, 1, 1, -26, -26, 1, 1, -80, 2080, -80, 1, 1, -242, 19360, 19360, -242, 1, 1, -728, 176176, -14094080, 176176, -728, 1, 1, -2186, 1591408, -385120736, -385120736, 1591408, -2186, 1, 1, -6560, 14340160, -10439636480, 2526392028160, -10439636480, 14340160, -6560, 1 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
0,5
LINKS
FORMULA
T(n, k) = c(n, q)/c(k, q) if k <= floor(n/2), otherwise c(n, q)/c(n-k, q), where c(n, q) = Product_{j=1..n} (1 - q^j) and q = 3.
T(n, n-k) = T(n, k).
EXAMPLE
Triangle begins as:
1;
1, 1;
1, -8, 1;
1, -26, -26, 1;
1, -80, 2080, -80, 1;
1, -242, 19360, 19360, -242, 1;
1, -728, 176176, -14094080, 176176, -728, 1;
1, -2186, 1591408, -385120736, -385120736, 1591408, -2186, 1;
MATHEMATICA
c[n_, q_]= Product[1-q^i, {i, n}];
T[n_, k_, q_]= If[Floor[n/2]>=k, c[n, q]/c[n-k, q], c[n, q]/c[k, q]];
Table[T[n, k, 3], {n, 0, 12}, {k, 0, n}]//Flatten
(* Second program *)
T[n_, k_, q_]= With[{QP=QPochhammer}, If[k<=Floor[n/2], QP[q, q, n]/QP[q, q, n-k], QP[q, q, n]/QP[q, q, k]]];
Table[T[n, k, 3], {n, 0, 15}, {k, 0, n}]//Flatten (* G. C. Greubel, Dec 04 2022 *)
PROG
(Magma)
QPochhammer:= func< n, a, q | n eq 0 select 1 else (&*[1-a*q^j: j in [0..n-1]]) >;
T:= func< n, k, q | k le Floor(n/2) select QPochhammer(n, q, q)/QPochhammer(n-k, q, q) else QPochhammer(n, q, q)/QPochhammer(k, q, q) >;
A174388:= func< n, k | T(n, k, 3) >;
[A174388(n, k): k in [0..n], n in [0..15]]; // G. C. Greubel, Dec 04 2022
(SageMath)
from sage.combinat.q_analogues import q_pochhammer
def T(n, k, q):
if ((n//2)>k-1): return q_pochhammer(n, q, q)/q_pochhammer(n-k, q, q)
else: return q_pochhammer(n, q, q)/q_pochhammer(k, q, q)
def A174388(n, k): return T(n, k, 3)
flatten([[A174387(n, k) for k in range(n+1)] for n in range(16)]) # G. C. Greubel, Dec 04 2022
CROSSREFS
Triangles of q: A000012 (q=0), A174387 (q=2), this sequence (q=3), A174389 (q=4).
Sequence in context: A167034 A155452 A147295 * A220718 A176283 A323324
KEYWORD
sign,tabl
AUTHOR
Roger L. Bagula, Mar 18 2010
EXTENSIONS
Edited by G. C. Greubel, Dec 04 2022
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 April 17 21:22 EDT 2024. Contains 371767 sequences. (Running on oeis4.)