Assignment 1
Assignment 1
Prajwal Khatiwada
September 12 2016
.
Let us assume 4 | (n2 + 2) then ,
n2 + 2
=k
4
where
kI
1
4
where
So
mI
[ pI
k =m+
1
k 6 I
4
so
p2 I
n2 +2
4
4p2 + 4p + 3 = 4k
4p2 + 4p + 3
4
3
k = p2 + p +
4
k=
k =m+
3
4
where
mI
1
[ pI
so
p2 I
3
k 6 I
4
which contradicts with our assumption that k I where k =
So
k =m+
n2 +2
4
The harmonic number Hj , j = 1, 2, 3, . . . are defined by Hj = 1 + 12 + 13 + . . . + 1j . Use mathematical induction to prove H2n 1 + n2
Let P(n) be H2n 1 + n2 , (n 1)
Basic Step: P(1) is true.
1
2
H21 = 1 +
Inductive Step:
Assume P(k) is true i.e. H2k 1 + k2
We need to show P(k+1) is also true. i.e. H2( k+1) 1 +
H2K+1 = H22k = 1 +
=1+
1
2
= (1 +
1
2
+ ... +
1
2
+ ... +
1
2k
+ ... +
= H2k + ( 2k1+1 +
1
)
2k
1
22k
1
2k +1
1
2k +2
+ ( 2k1+1 +
1
2k +2
+ ... +
+ ... +
1
2k +2
1
2k +2k
+ ... +
1
)
2k +2k
1
)
2k +2k
1
1
Each term from 2k+1
to 2k+1
is less than or equal to
are 2k terms, so the above equation can be written as
H2k+1 H2k + 2k
k+1
2
1
2k+1
and there
1
2k+1
1+
k
2
+ 2k
1
2k +2k
1+
k
2
+ 2k
1
22k
1+
k
2
1+
k+1
2
H2k+1 1 +
k+1
2
[ H2k 1 +
1
2
k
2
Use mathematical
induction to
n
P
prove
i2 = 16 n(n + 1)(2n + 1).
i=1
Let,P(n) be
n
P
i2
i=1
k
P
i=1
i2 = 61 k(k + 1)(2k + 1)
+7k+6
]
6
]
= (k + 1)[ (2k+3)(k+2)
6
=
(k+1)(2k+3)(k+2)
]
6
= 16 (k + 1)((k + 1) + 1)(2(k + 1) + 1)
What is the minimum number of students required in a class to be sure that at least six
will receive the same grade, if there are five
possible grades, A,B,C,D, and F?
The above stated problem can be solved using pigeon hole principle which
can be put as
If N objects are placed into k boxes, then there is at
N
e objects
least one box containing at least d K
So here supposing grades as holes (k) and students as pigeons(N) we have
to calculate the minimum value of N so that at least six students will
receive same grade.
N
e=6
k
For lowest possible value of N, we can write the equation as
i.e. d
or,
N = k(6 1) + 1
or,
N = 5(6 1) + 1
[ k = 5]
N = 26
So minimum number of students required is 26
9!
(95)!
9!
(95)!
=4032015120
=609638400
So they can be arranged in 609638400 ways.
References
1)https://artofproblemsolving.com/wiki/index.php?titlePigeonhole
Principle
2)Concrete Mathematics: A Foundation for Computer Science (2nd Edition)
2nd Edition by Ronald L. Graham (Author), Donald E. Knuth (Author),
Oren Patashnik (Author) 4.6