Professional Documents
Culture Documents
JOURNAL OF MATHEMATICS
Volume 42, Number 4, 2012
The empty sequence and the 1-term sequence are also alternating
sequences by convention.
The number h(n, k) of alternating k-subsets of {1, 2, . . . , n} is well
known (see for example [2, 12]):
(n + k)/2 (n + k − 1)/2
(2) h(n, k) = + ,
k k
where N denotes the greatest integer ≤ N . Moreover, k>0 h(n, k) =
Fn+3 − 2, where Fn is the nth Fibonacci number (Fn = Fn−1 + Fn−2
1313
1314 TOUFIK MANSOUR AND AUGUSTINE O. MUNAGI
Fn(m) = 0, if n ≤ 0,
(m) (m) (m)
F1 = F2 = 1, F3 = 2,
(5) m
(m)
Fn(m) = fn−i , n ≥ 3.
i=1
Rαβ
if and only if
m−1
m−1
(Rαβ )
(6) C(x, y, q) = xn y k qαβ ,
n≥0 α=0 β=0
k≥0
(Rαβ )≥0,
α,β∈{0,1,... ,m−1}
as claimed.
ALTERNATING SUBSETS MODULO m 1317
m−1
xe(β) y
= m
+ y qαβ C(b; y, q | b)xa
1−x α=0 a≡β (mod m) b=1
a=0 b≡α (mod m)
m−1
xe(β) y xe(β−α (mod m))
= m
+ y qαβ C(b; y, q | b)xb
1−x α=0
1 − xm
b≡α (mod m)
b=0
m−1
xe(β) y xe(β−α (mod m))
= m
+ y qαβ Cα ,
1−x α=0
1 − xm
as required.
that is, the (i,j) term of the matrix Bm is given by [qαβ xe(m+β−α(mod m)) ]/
(1 − xm ). Let Am = Im − yBm , where Im is the unit m × m matrix.
Then, Lemmas 2.1 and 2.2 give the following result.
where
T
xm y xy xm−1 y
(C0 , C1 , . . . , Cm−1 )T = (Am )−1 m
, m
,... , .
1−x 1−x 1 − xm
(7) C(x, y, q)
1 (1−x2 )(1+x)xy−x2 (q11 x2 −q01 x+q00 −q10 )y 2
= 1+ (1−x2 )2 −x2 (1−x2 )(q00 +q11 )y+x2 (q00 q11 x2 −q01 q10 )y 2 .
1−x
ALTERNATING SUBSETS MODULO m 1319
q C(x, 1, q)
1+2x
(0, 1, 1, 1) 1−4x2 +2x4
1+2x−2x3
(1, 0, 1, 1) (1−2x2 )2
(1−x2 )(1+2x)
(1, 1, 0, 1) (1−2x2 )2
(1+x)(1+x−x2 )
(1, 1, 1, 0) 1−4x2 +2x4
Example 3.1. Equation (7) for q00 = q11 = 0 and y = q01 = q10 = 1
gives that
1
C(x, 1, 0, 1, 1, 0) = ,
(1 − x)(1 − x − x2 )
where
and
1 x3 yΔ0 + xyΔ1 + x2 yΔ2
(8) C(x, y, q) = 1+ .
1−x Δ
q C(x, 1, q)
1+2x+4x2
(0, 1, 1, 1, 1, 1, 1, 1, 1) 1−8x3 +4x6
1+2x+4x2 +x3 −2x4 −4x5
(1, 0, 1, 1, 1, 1, 1, 1, 1) 1−7x3 +8x6
1+2x+4x2 −4x5
(1, 1, 0, 1, 1, 1, 1, 1, 1) 1−8x3 +8x6
(1−x3 )(1+2x+4x2 )
(1, 1, 1, 0, 1, 1, 1, 1, 1) 1−8x3 +8x6
1+2x+4x2 −x4 −2x5
(1, 1, 1, 1, 0, 1, 1, 1, 1) 1−8x3 +4x6
1+2x+3x2 −x3 −2x4 −4x5
(1, 1, 1, 1, 1, 0, 1, 1, 1) 1−7x3 +8x6
(1−x3 )(1+2x+4x2 )
(1, 1, 1, 1, 1, 1, 0, 1, 1) 1−7x3 +8x6
1+2x+4x2 −2x4 −4x5
(1, 1, 1, 1, 1, 1, 1, 0, 1) 1−8x3 +8x6
1+2x+4x2 −2x5
(1, 1, 1, 1, 1, 1, 1, 1, 0) 1−8x3 +4x6
1
(0, 1, 1, 1, 0, 1, 1, 1, 0) (1−x)(1−x−x2 −x3 )
1+2x+4x2
(0, 1, 1, 0, 1, 1, 0, 1, 1) (1−x3 )(1−4x3 )
1+2x+4x2 +3x3 −x4 −2x5
(1, 0, 1, 1, 0, 1, 1, 0, 1) (1−x3 )(1−4x3 )
1+2x+3x2 +x3 +2x4 −2x5
(1, 1, 0, 1, 1, 0, 1, 1, 0) (1−x3 )(1−4x3 )
ALTERNATING SUBSETS MODULO m 1321
AC(x, y) = CP (x, y, 0, 1, 1, . . . , 1)
1 − xm + xm y
=
(1 − x)(1 − x − xy − x2 y − · · · − xm−1 y)
m
n+1
(m)
(9) hm (n) = Fj .
j=1
Note that A(j, m) is empty for r = 0, 1. Since the sets on the right-hand
side of (10) are disjoint, we have
q
tm−1
∗
(11) |Hm (j) \ {j}| = |Hm (j − i)∗ | + |A(j, m)|.
t=1 i=(t−1)m+1
Now we consider the difference |Hm (j)∗ \ {j}| − |Hm (j − m)∗ \ {j − m}|.
This can be evaluated using equation (11). Since j ≡ j − m (mod m),
it follows that the sets of contributing blocks to Hm (j)∗ \ {j} and
Hm (j − m)∗ \ {j − m} coincide except for the (extra) first block of
Hm (j)∗ \ {j}, namely,
m−1
Hm (j − s)∗ .
s=1
Hence, we obtain
m−1
|Hm (j)∗ \ {j}| − |Hm (j − m)∗ \ {j}| = |Hm (j − s)∗ | .
s=1
That is,
m
(12) |Hm (j)∗ | = |Hm (j − s)∗ | .
s=1
The initial conditions are |Hm (1)∗ | = 1, |Hm (2)∗ | = 2, since Hm (1)∗ =
{{1}} and Hm (2)∗ = {{2}, {1, 2}}.
1324 TOUFIK MANSOUR AND AUGUSTINE O. MUNAGI
Thus, |Hm (j)∗ | satisfies the same recurrence relation as the number
(m)
Fj+1(see (5)) and fulfills the same initial conditions. Hence,
n
Lastly, since Hm (j)∗ is nonempty, we have hm (n) − 1 =
(m)
j=1 Fj+1 ,
which proves the theorem.
q m−1
r−1
(m) (m)
(14) Fn(m) = 1 + Fn−i−(t−1)m + Fr−i ,
t=1 i=1 i=1
where n = mq + r, 0 ≤ r ≤ m − 1.
n+1
n
(m) (m) (m) (m)
hm (n) = Fj = F1 + Fj−1 + · · · + Fj−m
j=1 j=2
m n+1
(m)
=1+ Fj−i
i=1 j=i+1
m n+1−i
(m)
=1+ Fj
i=1 j=1
m
=1+ hm (n − i).
i=1
ALTERNATING SUBSETS MODULO m 1325
REFERENCES
1. M. Abramson and W. Moser, Generalizations of Terquem’s problem, J. Com-
bin. Theory 7 (1969), 171 180.
2. L. Carlitz, Alternating sequences, Discrete Math. 17 (1977), 133 138.
3. C.A. Church and H.W. Gould, Lattice point solution of the generalized problem
of Terquem and an extension of Fibonacci numbers, Fibonacci Quart. 5 (1967),
59 68.
4. I.P. Goulden and D.M. Jackson, Combinatorial enumeration, Dover, New York,
2004.
5. , The enumeration of generalized alternating subsets with congruences,
Discrete Math. 22 (1978), 99 104.
6. A.O. Munagi, Alternating subsets and permutations, Rocky Mountain J. Math.
40 (2010), 1965 1977.
7. , Alternating subsets and successions, ARS Combinatoria, to appear.
8. E. Netto, Lehrbuch der Combinatorik, 2nd ed., Leipzig, 1927, reprinted by
Chelsea, New York, 1958.
9. J.W. Reilly, Generalized alternating subsets by generating function methods,
ARS Combin. 3 (1977), 151 163.
10. J. Riordan, An introduction to combinatorial analysis, Wiley, New York,
1958.
11. N.J.A. Sloane, The on-line encyclopedia of integer sequences, published
electronically at www.research.att.com/ njas/sequences/.
12. S.M. Tanny, An application of a generalization of Terquem’s problem, Canad.
Math. Bull. 18 (1975), 769 770.