Counting Insights Vol 1.2 Applications of Pigeon-Hole Principle

Counting Insights Vol 1.2 Applications of Pigeon-Hole Principle

Guarantees in a Decimal Expansion

A rational number with decimal expansion of the form
0.d1d2dndidi+1dndidi+1dn
has a non-empty list of digits (didi+1dn) repeating, hence is denoted by
0.d1d2di1¯didi+1dn
For example,
10225=4.0800000=4.08ˉ0
211=0.1818181818=0.¯18

A careful study of long division method shows that digits in decimal expansion repeat because remainder repeats itself in the long division method. Therefore, exactly the same sequence of quotients and remainders are generated as before, causing the sequence of digits to repeat (in decimal expansion).
A natural question to ask is, why does the remainder repeat?

Theorem 2. r is rational r has repeating decimal expansion.
Proof: Forward_
Let rQr=mn for some m,nZ and n0. Without loss of generality, we can assume n>0.
By division algorithm, for every integers m,n with n>0, unique integers q and r such that m=q×n+r, where r<n.
If r=0, we have repeating zeros in decimal expansions.
If r0, then there are only n1 possible non-zero values that r can have. Considering the next n steps in the long division as set A and n1 possible non-zero values of r as set B, we see that by contrapositive of Theorem 1, |A|>1×|B|.
any map f:AB can’t be 1-1. Hence at least one non-zero value of r repeats itself in the next n steps of long division.
r=mn has repeating decimal expansion.
Backward_
Let r denote the fractional part (0,1) of a real number having repeating decimal expansion.
If the repeating list of digits has length k and begins j digits to the right of decimal, then
10j+k×r=¯didi+1dn
10j+k×r 10k×r=d1d2di1.00000
Clearly RHS is an integer and (10j+k 10k) is also an integer
rQ. Since the fractional part is rational, entire real number (integral part + fractional part) will be rational too.  
Note: Decimal expansion of irrational numbers grows indefinitely without repetition, because they are NOT ratio of two integers.


Existence of Divsior of a Sum of Integers

Theorem 3. Let mN. Given m integers a1,a2,,am, there exist k,lN with 0k<lm such that ak+1+ak+2++al is divisible by m.
Proof: Consider the m partial sums
S1=a1
S2=a+a2

Sm=a1+a2++am
There are two cases: Either some of these partial sums is divisible by m or none of these partial sums is divisible by m.
If jth partial sum Sj is divisible by m, then k=0 and l=j and conclusion of the proof follows.
Assuming the other possiblity, suppose none of these partial sums is divisible by m. Then, each partial sum Sj leaves non-zero remainder, when divided by m. By division algorithm, there can be only m1 non-zero remainders possible.
Consider set of m partial sums as set A and set of m1 possible remainders as set B. Then we have, |A|>1×|B|. So by contrapositive of Theorem 1, at least two distinct partial sums have the same non-zero remainder.
 Si,Sj such that Si=qi×m and Sj=qj×m.
SiSj=(qiqj)×m
ai+1+ai+2++aj=k×m, where k=qiqj
 k=i,l=j with k<l such that m|(ak+1+ak+2++al).  


Guarantees in a Scheduling Decision

Case Study 4. The local hockey-league wants to schedule at least one game every day, during the 11-week summer season. To keep the fields in good condition, it is decided to schedule no more than (at most) 12 games per week. Then, no matter how we arrange the games in the summer season, there will be a succession of days, during which exactly 21 games are scheduled.
Analysis: Notice that there will be at least 7 games per week. This suggests a surjection from set of games A onto set of weeks B. Further, cardinality of pre-image of each element of B is at most 12. And |B|=11. So, by contrapositive of Theorem 1, we have
|A|12×|B|
Maximum number of games possible =12×11=132.
Minimum number of games possible =7×11=77.
But the above analysis is in terms of weeks; we are required to show that  k>1 consecutive days such that sum of games scheduled on these days =21.
So, we define cumulative partial sums Si denoting total number of games scheduled from day 1 to day i.
S1= number of games scheduled on day 1.
S2= sum of games scheduled upto day 2

S77 = sum of games scheduled upto (last) day 77
such that 77S77132.
Now, we intend to find i,j with j<i such that on some duration (ij), we have SiSj=21.
Since, there is at least 1 game scheduled per day, the sequence <Sn> is strictly increasing (all terms distinct), i.e.,
1S1<S2<<S77132.
On adding 21 on both sides of the inequality, we get
S1+21<S2+21<<S77+21153.
Thus, we have 2×77=154 terms, each of which is an integer between 1 and 153. By contrapositive of Theorem 1, this is possible only when at least two of the 154 terms have same value.
However, first 77 terms are distinct and last 77 terms are also distinct. So, same value is possible only when by choosing 1 term from first group and another 1 from second group.
Si=Sj+21SiSj=21
Days j+1,j+2,,i is the duration during which 21 games are scheduled.  

Clearly, a total of 21 games can be scheduled in at most (max.) 21 days.
As an exercise, find the minimum number of days, in which 21 games can be scheduled, i.e., a total of 21 games can not occur in fewer than x days. Find the x.

Written with StackEdit.

Comments

Popular posts from this blog

Counting Insights Vol 1.1 Pigeon-Hole Principle

NT Insights Vol 1.0 Axiomatizing Natural Numbers