Assignment 3 ProofTechniques
Assignment 3 ProofTechniques
Solution 1:
Since P is a prime number, P is an odd number. This implies, P 2 is an odd number. Thus,
P 2 − 1 (even number) is divisible by 4 (∵ P 2 − 1 can be written as (P + 1)(P − 1), where P + 1
is even and P − 1 is even). Also, P 2 − 1 is divisible by 3 (∵ for any three consecutive integers
P − 1, P, P + 1, any one integer is divisible by 3. But, P is a prime number and > 3. Therefore,
either P − 1 or P + 1 is divisible by 3). We know that, Let a | b and c | b. If gcd(a, c) = 1 then,
ac | b. Since gcd(4, 3) = 1, 12 divides P 2 − 1 i.e., P 2 − 1 = 12k, where k is any integer. Thus,
P 2 = 12k + 1.
Solution 2:
Any prime number > 3 can be written in the form 6m ± 1, where m is a positive integer. Thus,
P 2 = 36m2 ± 12m + 1 = 12(3m2 ± m) + 1 = 12k + 1, where k = 3m2 ± m.
Question 2 If an integer is simultaneously a square and a cube (ex: 64 = 82 = 43 ), verify that
the integer must be of the form 7n or 7n + 1.
Solution:
Direct proof: Let z = x2 and z = y 3 for some x, y ∈ I. Note that any number x ∈ I can be
represented as x mod 7 = i, 0 ≤ i ≤ 6. This implies x2 mod 7 = j, j = {0, 1, 2, 4}. Similarly,
y mod 7 = i, 0 ≤ i ≤ 6 implies that y 3 mod 7 = k, k = {0, 1, 6}. It follows that if z mod 7 = 0
or z mod 7 = 1. Therefore, z = 7n or z = 7n + 1.
Question 3 The circumference of a ‘roulette wheel’ is divided into 36 sectors to which the
numbers 1, 2, . . . , 36 are assigned in some arbitrary manner. Show that there are 3 consecutive
sectors such that the sum of their assigned numbers is at least 56.
Solution:
Let ai denotes the sum of three consecutive sectors from sector i, 1 ≤ i ≤ 36. On the contrary,
assume that the sum of any three consecutive sectors is ≤ 55. Therefore,
36
X
ai ≤ 36 × 55
i=1
3 × (1 + 2 + . . . + 36) ≤ (36 × 55)
36 × 37
3× ≤ (36 × 55)
2
111 ≤ 110 (W hich is a contradiction)
Thus, our assumption that the sum of any three consecutive sectors is ≤ 55 is wrong. Therefore,
there exist 3 consecutive sectors such that the sum of their assigned numbers is at least 56.
Question 4 If there are 104 different pairs of people who know each other at a party of 30
people, then show that some person has 6 or fewer acquaintances.
Solution:
On the contrary assume that all persons are having at least 7 acquaintances. Therefore, the
number of distinct acquaintance pair is at least 30 × 7/2 = 105. This is contradiction to the
fact that there are 104 different pair of acquaintances. Therefore, our assumption is wrong and
it follows that there exist at least a person with 6 or fewer acquaintances.
Mathematical Induction
Solution:
Base case: n = 1, 81 − 31 is divisible by 5. Induction hypothesis: Assume that 8n − 3n is
divisible by 5 for all n ≥ 1. Induction step: For n ≥ 1, consider 8n+1 − 3n+1 = (8.8n − 3.3n ) =
(5 + 3)8n − 3.3n = 5.8n + 3(8n − 3n ). By the induction hypothesis, 8n − 3n is divisible by 5 and
hence, = 5.8n + 3(8n − 3n ) is divisible by 5. Therefore, we can conclude that 8n − 3n is divisible
by 5 for all n ≥ 1.
Question 6 Prove by induction: a number, given its decimal representation is divisible by 3 iff
the sum of its digits is divisible by three.
Solution:
Let us prove this by induction on number of digits, n.
Base Case: n = 1, clearly, then a number is divisible by 3 iff the sum of the digits is divisible
by 3. For example, the numbers 3,6,9 satisfy this case.
Hypothesis: Assume that the statement holds for n = k, k ≥ 1. i.e., a number composed of k
digits is divisible by 3 iff the sum of its digits is divisible by 3.
Induction Step: Let n = k + 1, k ≥ 1. Let x be a number composed of k + 1 digits. Our claim
is to prove that x is divisible by 3 iff the sum of the digits in x is divisible by 3.
Since, am 10m can be written as am + am (10m − 1), equation (1) can be written as follows:
Since, 3 divides 10n − 1, implies that 3 divides (ak (10k − 1) + ak−1 (10k−1 − 1) + . . . + a1 (101 − 1)).
By the hypothesis, (ak−1 + . . . + a0 ) is divisible by 3 iff ak−1 . . . a0 . Thus, x is divisible by 3 iff
ak is divisible by 3. i.e., x is divisible by 3 iff (ak + ak−1 + . . . + a0 ) is divisible by 3. Therfore,
x is divisible by 3 iff the sum of the digits in x is divisible by 3.
Question 7 For each positive integer n, there are more than n prime integers.
2
Solution:
Base case: n = 1. {2, 3, . . .} are prime integers. Clearly, for the integer ’1’, there exist more than
one.
Induction hypothesis: Assume for n = k, k ≥ 1, that there exist more than k prime integers. Let
the prime numbers be p1 , p2 , . . . , pk , pk+1 . . ..
Induction step: We claim that for n = k + 1, k ≥ 1 there exist more than k + 1 prime numbers.
Consider the number P = p1 · p2 . . . pk · pk+1 + 1, i.e. P is one plus the product of the prime
numbers p1 , p2 , . . . , pk+1 .
We consider the following cases to complete the proof.
Case a: If P is a prime number, then there exist more than k + 1 prime numbers with (k + 2)nd
prime number being P .
i.e., {p1 , p2 , . . . , pk , pk+1 , P } are the set of (k + 2) prime numbers.
Case b: If P is not a prime number, then note that there exist a prime factorization for P
and none of {p1 , p2 , . . . , pk , pk+1 } are its prime factors. This implies that there exist a prime
factor pk+2 for P such that pk+2 6= pi , 1 ≤ i ≤ k + 1. Therefore, {p1 , p2 , . . . , pk , pk+1 , pk+2 } are
prime numbers with cardinality more than k + 1. The induction is complete and hence the claim
follows.
Question 8 Show that any integer composed of 3n identical digits is divisible by 3n . (for exam-
ple: 222 is div by 3, 555,555,555 is div by 9)
Solution:
We shall prove this by induction on n.
Base Case: For n = 1, we note that any 3-digit integer with 3 identical digits is divisible by 3.
Since, for any k ∈ {1, . . . , 9}, kkk = k · (111). Further, 111 is divisible by 3. Therefore, kkk is
divisible by 3.
Hypothesis: Assume that the statement is true for n = k, k ≥ 1.
Induction Step: For n = k + 1, k ≥ 1. Let x be an integer composed of 3k+1 identical digits.
We note that x can be written as
x=y×z
k k
where y is an integer composed of 3k identical digits, and z = 102·3 + 103 + 1.
1 1
For example, x = 666666666 = 666 × 1001001 = y × (102·3 + 103 + 1). y is divisible by 3k by
the hypothesis and z is divisible by 3 (sum of the digits is divisible by 3). Thus x is divisible by
3k+1 .
Question 9 A person takes at least one tablet a day for 50 days. He takes 90 tablets altogether.
Is it true that during some sequence of consecutive days he has taken exactly 24 tablets. Justify
your answer.
Solution:
Let ai be the number of tablets the patient has taken till the end of the ith day. Thus we have
the following sequence:
1 ≤ a1 < a2 < . . . < a50 = 90.
Thus we have
1 + 24 ≤ a1 + 24 < a2 + 24 < . . . < a50 + 24 = 90 + 24.
i.e.,
25 ≤ a1 + 24 ≤ a2 + 24 ≤ . . . ≤ a50 + 24 = 114.
3
Thus, among all the numbers: a1 , a2 , . . . , a50 , a1 + 24, . . . , a50 + 24 are 100 numbers (pigeons)
from 114 (pigeon holes). So, there is no possibility of two numbers to be equal (Since a patient
takes at least one tablet a day). Thus, there is no sequence of consecutive days where the patient
has taken exactly 24 tablets.
Solution:
On the contrary, we assume that there does not exist a number divisible by n in a set of
n consecutive integers. We can place integer i in congruence class j, where j = i mod n,
1 ≤ j ≤ n − 1 corresponding to pigeon holes. Observe that n integers (pigeons) are there and by
pigeonhole principle, there exist a class with more than one integer, say a, b where a = x.n + r
and b = y.n + r. Note that x and y differ by at least one and it follows that there exist at
least n + 1 consecutive integers from a to b inclusive of both. This is a contradiction to the
fact that there are n consecutive integers. Therefore our assumption is wrong and one of any
n-consecutive integers is divisible by n.
Question 11 Show that among (n + 1) positive integers less than or equal to 2n, there are 2
consecutive integers.
Solution:
Pigeon holes: (1, 2), (3, 4), . . . , (2n − 1, 2n), n pigeon holes
Pigeons: n+1 pigeons. Choose n+1 distinct numbers from the 2n positive integers. Place pigeon
x in the hole (a, b) if a = x or b = x.
PHP: At least 2 pigeons will be placed in a hole and since (n + 1) integers are distinct those two
pigeons are consecutive numbers (by the definition of pigeon holes).
Question 12 Show that in a group of five people (where any two people are either friends or
enemies), there are not necessarily three mutual friends or three mutual enemies.
Solution:
Consider a person A and divide the remaining 4 persons into two sets, friends and the enemies
of A. There exist at least two persons the friends set or in the enemies set of A by pigeonhole
principle. We can see the below possibilities
Cardinality of Cardinality of
friend set of A enemy set of A
2 2
1 3
3 1
0 4
4 0
Consider the possibility where there exist 2 friends B, E and 2 enemies C, D of A. If B and
E are friends, then there exist three mutual friends, {A, B, E}. Therefore, we consider a scenario
where B and E are enemies. Similarly, if C and D are enemies, then there exist three mutual
enemies, {A, C, D}. Therefore, we consider a scenario where C and D are friends. Now if B is a
friend of C, and D is a friend of E, then there does not exist three mutual friends or three mutual
enemies in the scenario. Scenario in short: friend relations (A, B), (B, C), (C, D), (D, E), (E, A).
Question 13 Show that in a group of 10 people (where any two people are either friends or
enemies), there are either three mutual friends or four mutual enemies, and there are either
three mutual enemies or four mutual friends.
4
Solution:
We shall prove there are either three mutual friends or four mutual enemies and the argument
for the other claim is symmetric.
Let A, B, . . . , J be the ten persons. Take a person A: divide the remaining 9 persons into friends
set of A and the enemies set of A. By PHP, d 29 e = 5, at least five persons either in the friends
set of A or in the enemies set of A. Therefore, the possibilities are
We present case by case analysis among the above possibilities: at least 4 friends for A or
Cardinality of Cardinality of
friend set of A enemy set of A
5 4
6 3
7 2
8 1
9 0
4 5
3 6
2 7
1 8
0 9
Question 14 Show that if n + 1 integers are chosen from the set {1, 2, . . . , 2n} then there are
always two which differ by 1.
Solution:
Consider the groups {1, 2}, {3, 4}, . . . , {2n − 1, 2n} as pigeon holes. The n + 1 distinct integers
form the pigeons and by pigeon hole principle, there exist a group gk containing more than one
integer; say i, i + 1 ∈ gk . This implies that among the n + 1 distinct integers, there exist two
{i, i + 1} which differ by 1.