Professional Documents
Culture Documents
Let Bn = 111111
101111
110111
...
111110
The determinant of Bn = Un-1 + Un.
Show that
the recurrence
4. Let us label women and men as follows. Pick any one location where
a woman
is sitting. This will be referred as the first location. Starting
from
the woman at this seat, label all women 1, 2,..., n in the clockwise
order and give the woman's label to her husband as well. Suppose
the man sitting
to the left of woman-1 has label-a1; the man sitting to the left of
woman-2 has
label a2, so on. Let A = a1 a2 .... an. Then for all j, aj should
be neither
equal to j nor should it be equal to j+1. Then each permutation A
of 1,...,n
is a valid seating arrangement for men (give that women are already
seated)
if A disagrees with the following permutations at all positions.
B1 = 1 2 3...........n-1 n
B2 = 2 3 4 ..........n
1
So the problem is to find the number of permutations that disagree
with B1 and B2
at all positions. We use inclusion-exclusion technique to find the
number. Let us
define P1 to be the permutation in which first location has either
1 or 2, ...
Pi is the set of permutations in which i-th location has either i
or i+1, so on.
In other words Pi is the set of permutations where i-th position
has the violation.
Nr denotes the number of permutations in which at least r positions
have
want
Let r = 5.
After selecting 1 for the first column consider the sequence
233445566778899
suppose we choose
x x
x
x
then its interpretation it as follows
partition the sequence
|23|34|45|56|67|78|89|9|
the selection gives
1| |3 |4 | | 7| | 9|
..................................................................
.............
See that p non-consecutive objects can be selected from a
sequence of m objects in
(m-p+1)C(p) (i.e. choose p from m-p+1) ways.
So in the above case the number of ways is (2n-r-1)C(r-1). Now
if we did the same
by choosing 1 for the last column then we will have another (2nr-1)C(r-1) ways.
This can be repeated by taking any k as the first violation.
So total number of ways is 2n.(2n-r-1)C(r-1). Now note that a
particular
choice of violation will also be created as ,
and when started at b,c,d respectively. So the choice of r
violation
will be computed r times. Thus the number of ways is
(2n/r)(2n-r-1)C(r-1). Now we fill in the remaining (n-r)
places by (n-r)
numbers in all possible ways. So total number of ways to have at
least r
violations is
SUM{i1,i2,...,ir} Ni1,i2,..,ir = Nr = (2n/r).(2n-r-1)C(r1).(n-r)!.
Now from inclusion/exclusion method find the number of ways in
which no violations
occur. Finally multiply the result by n!/n = (n-1)! which is the
number of ways
in which women could seated initially (ignoring its circular
permutation).
2.
We use the above result to solve this problem. Again we use
inclusion-exclusion
method. In this case Nr will include permutations where p
violation are in the first
half and q in the second where p+q = r. So
Nr = SUM{p+q=r} [(10/p).(10-p-1)C(p-1)+(10/q).(10-q-1)C(q1)].(n-r)!
Now find the number of ways with no violations.
5.
Let f(n) denote the number of crates of size n shipped during
this period. Let
g(m) denote the number of crates of size m containing box of size
m shipped.