Wednesday, January 17, 2024

Arithmetic+ 03: UNIZOR.COM - Math+ & Problems - Arithmetic

Notes to a video lecture on http://www.unizor.com

Arithmetic+ 03


Problem A

I have purchased a share of some company XYZ for price P0=$100.
After a month the price was lower by ρ=10%.
Another month later the price went up by the same percentage ρ=10% and I sold this share.
Have I lost or gain money, or got even?

Solution A

After the first month the price dropped from P0=100 by ρ=10%, that is by P0·0.1 and was
P1 = P0 − P0·ρ =
= 100 − 100·0.1 = 90


After the second month the price went up from P1=90 by ρ=10%, that is by P1·0.1 and was
P2 = P1 + P1·ρ =
= 90 + 90·0.1 = 99


Therefore, since I bought a share for P0=$100 and sold it for P2=$99, my net result is
ΔP = P2 − P0 = −$1
which is a loss.

Notice that percentage of my loss was equal to percentage of my gain, but in dollars it was larger because the same percentage was applied to a larger amount on the way down, than to a smaller amount on the way up.


Problem B

I have purchased a share of some company XYZ for price P0=$100.
After a month the price was higher by ρ=10%.
Another month later the price went down by the same percentage ρ=10% and I sold this share.
Have I lost or gain money, or got even?

Solution B

After the first month the price went up from P0=100 by ρ=10%, that is by P0·0.1 and was
P1 = P0 + P0·ρ =
= 100 + 100·0.1 = 110


After the second month the price went down from P1=110 by ρ=10%, that is by P1·0.1 and was
P2 = P1 − P1·ρ =
= 110 − 110·0.1 = 99


Therefore, since I bought a share for P0=$100 and sold it for P2=$99, my net result is
ΔP = P2 − P0 = −$1
which is a loss.

Notice that percentage of my loss was equal to percentage of my gain, but in dollars it was larger because the same percentage was applied to a larger amount on the way down, than to a smaller amount on the way up.

IMPORTANT CONCLUSION:
If market price of a stock regularly goes up and down by the same percentage, the price per share goes down, investors lose money.
To be profitable, the price should go up more frequently or/and by a greater percentage than down.


Problem C

(a) Within the framework of Problems A, what the percentage of gain would neutralize the loss after price moving down by ρ=10%?

(b) Within the framework of Problems B, what the percentage of loss would neutralize the gain after price moving up by ρ=10%?

Solution C

(a) If we lost ρ=10%, the price became
P1 = P0 − P0·ρ =
= 100 − 100·0.1 = 90

To return back to $100 from $90, the growth in price σ should satisfy the equation
100 = 90 + 90·σ
from which
σ = 1/9 ≅ 0.1111
Therefore, if we add approximately 11.11% to P1=90, the final price will be
P2 = 90 + 90·0.1111 =
= 99.999 ≅ 100


(b) If we gain ρ=10%, the price became
P1 = P0 + P0·ρ =
= 100 + 100·0.1 = 110

To return back to $100 from $110, the diminishing in price σ should satisfy the equation
100 = 110 − 110·σ
from which
σ = 10/11 ≅ 0.0909
Therefore, if we subtract approximately 9.09% from P1=110, the final price will be
P2 = 110 − 110·0.0909 =
= 99.999 ≅ 100


Answer C:

(a) To neutralize a loss of 10% we need a larger (in %) gain of approximately 11.11%.
(b) To neutralize a gain of 10% we need a smaller (in %) loss of approximately 9.09%.


Problem D (suggested by Max)

Concentration of salt dissolved in water is measured in percentage of the mass of salt to the total mass of solution (salt + water).

Initially, a glass contained 100 gram of solution of salt in water with the concentration of salt 1%.
Question 1: how much salt and how much water was in a glass?

This same glass was standing on a table for a week and part of water has evaporated, so the concentration of salt after a week became 2%.
Question 2: how much salt and how much water was in a glass after this process of evaporation?
Question 3: how much water has evaporated in a week?

Solution D

If 100 gram of solution contained 1% of salt, the mass of salt was
msalt = 100·0.01 = 1 (gram)
Hence, the mass of water was
mwater = 100 − 1 = 99 (gram)

Answer 1 (initially):
msalt = 1 (gram)
mwater = 99 (gram)

After some water has evaporated, the glass contained the same amount salt, that is 1 gram.
Since we know that it constitutes 2% of a solution, the total mass of solution must be 50 gram because
1/0.02 = 50 (gram)

To make 50 gram of solution with 1 gram of salt, we need 49 gram of pure water.

Answer 2 (after a week):
msalt = 1 (gram)
mwater = 49 (gram)

Answer 3:
That means, 99−49=50 gram of water has evaporated in a week.

Thursday, January 11, 2024

Algebra+ 02: UNIZOR.COM - Math+ & Problems - Algebra

Notes to a video lecture on http://www.unizor.com

Algebra+ 02


Problem

Let {xi} (where i∈[1,n] and n is any natural number) be a set of n real non-negative numbers.

Their arithmetic average
(or mean) is defined as
An = (1/n)·Σi∈[1,n] xi
(symbol Σi∈[1,n] is summation for all indices i∈[1,n])

Their geometric average is defined as
Gn = (Πi∈[1,n] xi)1/n
(symbol Πi∈[1,n] is multiplication for all indices i∈[1,n])

Prove that An ≥ Gn.

Solution A
(by Cauchy)

Our plan is multi-step.
First (step 1), we will check our inequality for n=1 and prove it for n=2.
Then (step 2) we will prove that, if it's held for some n, it will be held for 2n, which, if start with n=2 would prove the inequality for n=4, n=8 etc. - for all n=2k, where k is any natural number.
Finally (step 3), we will prove for all other n by complementing any given n non-negative numbers {xi} with some new numbers to make the total quantity of numbers equal to 2k.

Step 1
It's obvious that for n=1 the inequality is held because
A1 = x1/1 = x1
and
G1 = (x1)1 = x1

For n=2 let's prove it as follows.
Start from the original inequality that needs to be proven, do some reversible invariant transformations to get to an unconditionally true statement (this is the analysis stage) and then use the reversibility of invariant transformations to prove the original inequality by going backward through these transformations, beginning with final unconditionally true statement (the proof proper).

Note that all our participating numbers are real non-negative, it's important when we talk about reversible invariant transformations that involve raising both sides of inequality to the power of 2.

Original inequality to be proven:
(I) (x1+x2)/2 ≥ (x1·x2)½
Now do the following series of invariant transformations.
(II) Square both sides (it is an invariant reversible transformation for non-negative numbers).
(x1+x2)²/4 ≥ x1·x2
(III) Open parenthesis.
x1²+2·x1·x2+x2² ≥ 4·x1·x2
(IV) Bring all members to the left side.
x1² − 2·x1·x2 + x2² ≥ 0
(V) Notice, we have a full square on the left, let's transform it into an explicit square:
(x1 − x2)² ≥ 0
The above is an unconditionally true statement.

Therefore, the above analysis allows us to formulate the proof by starting from this unconditionally true statement (V) and invariantly transform it into (IV), (III), (II) and (I), which proves the original inequality.
Step 1 of the proof is done.

Step 2
Let's prove that the quantity of non-negative numbers participating in arithmetic and geometric averaging can be doubled.
More precisely, we will prove that if the inequality is true for n elements, it's true for 2n elements.

Assume, An ≥ Gn for some n.
Let's prove that A2n ≥ G2n.
Divide our set of 2n elements into two subsets:
subset #1 {xi}i∈[1,n] and
subset #2 {xi}i∈[n+1,2n]

Let An(1) and Gn(1) be arithmetic and geometric averages of the elements of subset #1 and
An(2) and Gn(2) be arithmetic and geometric averages of the elements of subset #2.
Let A2n and G2n be arithmetic and geometric averages of the elements of an entire set of 2n elements.

Each subset contains n elements (non-negative numbers), and we assumed that our original inequality is held for this quantity of elements.
Therefore,
An(1) ≥ Gn(1) and
An(2) ≥ Gn(2).

Obviously,
A2n = [An(1)+An(2)] /2
G2n = [Gn(1)·Gn(2)]½

Using the above assumption about inequality between arithmetic and geometric averages of sets of n elements,
A2n = [An(1)+An(2)] /2 ≥
≥
[Gn(1)+Gn(2)] /2
Using the proven above inequality for only two elements Gn(1) and Gn(2), we can state
[Gn(1)+Gn(2)] /2 ≥
≥
[Gn(1)·Gn(2)]½ = G2n

Combination of the two inequalities obtained above proves that
A2n ≥ G2n
Step 2 of the proof is done, and we can state that, since the inequality was proven for n=2, it is true for n=4,8,16..., that is for any n=2k.

Step 3
Let's prove the inequality for values of n between powers of 2.
Let the value of n be greater than 2k−1 but less than 2k.
An and Gn are, as before, arithmetic and geometric averages of our n numbers.

Let's complement our set of n numbers {xi}i∈[1,n] with m=2k−n new numbers, each of which is equal to Gn.
Now we have a set of 2k=m+n numbers, and we can apply the inequality between arithmetic and geometric averages proven to be true for such sets.

Consider Am+n for our new set that contains n original elements {xi} and m new elements, each of which equals to Gn.
Obviously,
Am+n = [n·An + m·Gn] /(m+n)

Now calculate Gm+n for our new set that contains n original elements {xi} and m new elements, each of which equals to Gn.
Obviously,
Gm+n = [Gnn · Gnm]1/(m+n) =
=
[Gnm+n]1/(m+n) = Gn

Since m+n=2k and our original inequality was proven for this quantity of participating non-negative numbers,
Am+n ≥ Gm+n
Therefore,
[n·An + m·Gn] /(m+n) ≥ Gn

Simple transformations of the last inequality result in the following.
n·An + m·Gn ≥ (m+n)·Gn
n·An ≥ n·Gn
An ≥ Gn
Step 3 of the proof is done, and we can state that it was proven for any set of non-negative numbers that their arithmetic average is greater or equal to their geometric average.

Alternate step 3
Instead of complementing our original set of n numbers with Gn, we can complement it with An with similar results.
Then,
Am+n = [n·An+m·An] /(m+n) =
= An


Now calculate Gm+n for our new set that contains n original elements {xi} and m new elements, each of which equals to An.
Gm+n = [Gnn · Anm]1/(m+n)

Since m+n=2k and our original inequality was proven for this quantity of participating non-negative numbers,
Am+n ≥ Gm+n
Therefore,
An ≥ [Gnn · Anm]1/(m+n)

Simple transformations of the last inequality result in the following.
Anm+n ≥ Gnn·Anm
Anm·Ann ≥ Gnn·Anm
Ann ≥ Gnn
An ≥ Gn

The equality between arithmetic and geometric averages is obvious if all numbers are equal to each other, that is xi=xj for any indices i and j.
Symbolically, it looks like
xi=xj ∀ i,j∈[1,n] ⇒ An = Gn


Solution B
(by Polya)

From the standard course of Math is known that the function y=ex at point x=0 has a value y(0)=1 and has a tangential at 45°, which looks like this.

Shifting the graphs by 1 to the right by replacing x with x−1, we will have the following picture

The last picture shows that the following inequality is held for all real values of x
ex−1 ≥ x

Consider now a set of n non-negative numbers {xi} (where i∈[1,n] and n is any natural number) with A being their arithmetic average and G being their geometric average (we are omitting a subscript n in averages for brevity).

Using an inequality above for x=xi /A, we obtain
e(xi /A)−1 ≥ xi /A for any i or
A·e(xi /A)−1 ≥ xi

Multiplying the above inequality for all values of index i from 1 to n, we obtain
An·e Σ(xi /A)−n ≥ Π(xi )

Interestingly, the exponent in the expression above is zero.
Here is why
Σ(xi /A) = (1/A)·Σ(xi) =
= (1/A)·A·n = n
,
which makes the exponents in the inequality above equal to zero.

Therefore, considering e0=1, the inequality above looks like
An ≥ Π(xi )
A ≥ [Π(xi )]1/n = G
End of proof.

Tuesday, January 9, 2024

Algebra+ 01: UNIZOR.COM - Math+ & Problems - Algebra

Notes to a video lecture on http://www.unizor.com

Algebra+ 01


Problem A

Given an equation of parabola in Cartesian coordinates on a plane
y = x² − A·x + A
where parameter A can be any real number.
Each value of parameter A defines some parabola.

(A1) Find the point on a plane, through which go all the parabolas defined by all real values of parameter A.

(A2) On what curve lie the vertices of all the parabolas defined by all real values of parameter A?

Solution A

A1
Assuming the statement of this problem implies that such a point, where all parabolas are crossing, exists, let's find it by equating any two values of y for different values of parameter A.

Take, for example two parabolas for A=0 and A=1 and find their crosing point, that is such x for which corresponding quadratic forms equal to each other.
A=0 ⇒ y = x²
A=1 ⇒ y = x² − x + 1

Equating both expressions gives
x² = x² − x + 1
⇒ x = 1

Consider now this value x=1.
With this x the equation becomes independent of parameter A:
y = 1² − A·1 + A = 1
for any value of parameter A.

Therefore, any parabola defined by any value of A goes through point with coordinates x=1, y=1 on a plane.


A2
We need a formula for a vertex of a parabola represented by a general quadratic form
y = a·x² + b·x + c
If we do not remember the formula for X-coordinate of its vertex, recall that it is in the middle between the two roots of a quadratic equations
a·x² + b·x + c = 0
The formula for its roots (and that is something to remember) is
x1,2 = [−b ± √b²−4ac] /2a
Therefore, the X-coordinate of a vertex is in the middle between its roots
x0 = ½(x1 + x2) = −b/2a

Alternatively, using Calculus, we can find x0 by equating a derivative of a given quadratic form to zero:
y' = 2ax + b = 0
Therefore,
x0 = −b/2a

The Y-coordinate of a vertex is, therefore,
y0 = a·x0² + b·x0 + c =
= a(b/2a)² + b(−b/2a) + c =
= b²/4a − b²/2a +c =
= −b²/4a + c


In our case of a quadratic form
y = x² − A·x + A
the values of coefficients are
a = 1, b = −A, c = A
Therefore, the coordinates of a parabola's vertex for a specific value of parameter A is
x0 = A/2
y0 = −A²/4 + A
As parameter A changes, so do coordinates of a vertex forming some parametrically defined curve.

To convert this parametric definition of a curve into the usual format y0=f(x0) we resolve parameter A in terms of x0 and substitute it into an expression for y0.
Since
x0 = A/2
the value of A in terms of x0 is
A = 2x0

Substitute it into an expression for y0:
y0 = −4x0²/4 + 2x0 =
= −x0² + 2x0

which is a parabola with coefficients
a = −1
b = 2
c = 0

The standard characteristics of this parabola are as follows.
The "horns" are directed downwards.
Vertex is at
x0 = −b/2a = −2/−2 = 1
y0 = −b²/4a + c = −4/−4 + 0 = 1
Roots (X-intercepts) are
x1,2 = (−2±√4)/−2
⇒ x1 = 0, x2 = 2

Saturday, January 6, 2024

Geometry+ 01: UNIZOR.COM - Math+ & Problems - Geometry

Notes to a video lecture on http://www.unizor.com

Geometry+ 01

Problem A

Can two sides and all angles of one triangle be equal to two sides and angles of another triangle, but triangles be different (that is, not congruent because the third sides of these triangles have different lengths)?

If yes, are there any requirements on the sides of a triangle to assure the existence of a non-congruent to it another triangle with the same three angles and two sides?

Solution

Here is an approximate picture that seems to illustrate that this is possible.

Both triangles (red and blue) have the same angles α, β and γ and two equal sides a=a and b=b.

Point D lies on the segment AC.
Point E lies on the segment BC.
The length of segment BC=a is greater than the length of segment CE=b.

Sides are parallel: AB || DE
⇒ ∠CAB=∠CDE = α
⇒ ∠ABC=∠DEC = β

Therefore, triangles are similar:
ΔABC ∼ ΔDEC

Congruent sides:
BC ≅ DE = a
AC ≅ CE = b

Now the question is, can we start with any triangle ΔABC and construct ΔDEC that is similar but not congruent to ΔABC.

The answer is negative, we cannot start with any triangle ΔABC, but under certain conditions it is possible, and we will examine specific requirements to make it.

Let's assume that ΔABC is defined by its three sides BC=a, AC=b and AB=c.
Triangle ΔDEC is similar to ΔABC and we know its two sides - DE=a and CE=b.
Assume, the third side of ΔDEC is CD=x.

From similarity of these triangles follows that the ratio of sides lying opposite to equal angles is the same:
CB/CE = CA/CD = AB/DE
Therefore,
a/b = b/x = c/a

From the first equation follows that
x = b²/a
From the second equation follows that
x = a·b/c
Therefore,
b²/a = x = a·b/c
⇒ a²b = b²c
⇒ a² = b·c
The last equation a²=b·c is the necessary condition required to construct triangle ΔDEC.
As we stated above, length a is greater than b. Therefore, to satisfy the last equation, length c must be greater than a, that is, a is somewhere in-between b and c.

The condition a² = b·c with length a being somewhere between unequal b and c is also a sufficient one for the task.

To prove it, assume that we have triangle ΔABC with unequal sides a, b and c, as on the picture above, that satisfy the condition a² = b·c.

Using length b of side AC, we mark point E on the side BC at distance b=b from point C.
Next we draw a line parallel to AB through point E that crosses AC at point D.

Consider triangle ΔDEC.
All its angles are, correspondingly, congruent to angles of triangle ΔABC, so these triangles are similar.

Let's prove that the length of side DE equals to the length of side BC=a. That will conclude the construction (and, therefore, existence) of a triangle with two sides and all angles equal to two sides and all angles of triangle ΔABC, but not congruent to it.

Let the length of side DE be an unknown y.
From similarity of two triangle follows:
a/b = c/y
⇒ y = b·c/a
As we know, b=b and, by assumption, a²=b·c.
Therefore,
y = a²/a = a
which is exactly what we had to prove.

Conclusion
There might exist a triangle with two sides and all angles equal to two sides and angles of a given triangle and not congruent it, but there is certain necessary and sufficient condition for its existence in terms of an equation between the sides a,b,c of a given triangle.
Namely, all sides a,b,c must be different and they must satisfy an equation a²=b·c.

Example
Consider a triangle with sides a=6, b=4 and c=9.
It satisfies the conditions above (all sides are different and 6²=4·9).
Now we know two sides of a triangle we have to construct: a=6 and b=4.
The third side x can be found from the similarity condition
x/b = b/a
⇒ x = b·b/a = 16/6 = 8/3
To prove similarity, let's check the proportionality of all sides.
(8/3)/4 = 2/3
4/6 = 2/3
6/9 = 2/3

Angle Restriction
An interesting restriction can be derived on the value of angle ∠α lying between the longest and the shortest sides of triangle ΔABC across side a.
As we agreed, to make possible the existence of triangle ΔDEC with two (but not all three) sides and all three angles equal to those of ΔABC, the necessary and sufficient condition is
a² = b·c
At the same time, by the law of cosines,
a² = b² + c² −2b·c·cos(α)
Therefore, we have an equality
b·c = b² + c² −2b·c·cos(α)
or
2b·c·cos(α) = b² + c² − b·c =
= (b − c)² + b·c

Since (b−c)² is always positive, we conclude that
2b·c·cos(α) > b·c
or
cos(α) > ½
α < π/3 = 60°
Angle between the longest and the shortest sides of ΔABC should be less than π/3=60°.

Saturday, December 23, 2023

Logic+ 02: UNIZOR.COM - Math+ & Problems - Logic

Notes to a video lecture on http://www.unizor.com

Logic 02

Problem A

The game starts with two sets of stones and two players.
At each turn a player can take any number of stones but only from one of the sets.
The winner is the player who takes the last stones.

The player who should start the game can yield this right of the first move to his opponent. After that to take some stones on each move is the rule.

What is the winning strategy for a person who starts the game?

Solution A

The strategy to win for the first player is on every move to equalize the number of stones in two sets.

If the initial number of stones is different in these two sets, the first move of the player who starts the game is to take a few stones from a bigger set to equalize the number of stones.

His opponent, always facing two equal numbers of stones in two sets, cannot take the last stone and inevitably will make the number of stones in two sets different.

If in the beginning the numbers of stones in these two sets are equal, the player who starts the game should yield the right of the first move to his opponent, achieving the same conditions as above.


Problem B

There is a set of six points, no three points of this set lie on a straight line.
For clarity we can assume that they lie on a circle, though it's not essential.


Consider all subsets of three points of this set of six (we will call these subsets triplets).
Let's call a triplet, that has one or more segments connecting its points, a good triplet.
If all three points of a good triplet are connected by three segments, we will call this triplet a triangle.



For example, on the picture below all triplets have at least one pair connected by a segment (triplet ABC has two segments AB and AC, triplet CDF has two segments CF and DF, triplet ABF has one segment AB etc.)

Let's try to connect some points with segments in such a way that in any triplet there would be a pair of points connected by a segment.
That is, let's try to make all triplets good.

Prove that, no matter how we try to accomplish this task of making all triplets good by connecting our six points, there would inevitably be a triplet with three segments connecting all its three points into a triangle (that is, there will be at least one triangle), like ΔACE or ΔCEF in the example above.

Solution B

First, let's prove the following auxiliary statement (lemma) using the following illustration.


Assume that all triplets are good (as assumed in the Problem B) and some point (for example, A on the picture above) has three segments joining at it and connecting it to three other points (like on the picture above, point A is connected to B, C and E).
Then there exist a triangle.

Proof:
Since a triplet of three connected points (BCE on the picture above) is, as all other triplets, assumed to be good, there exists an additional connecting segment between some of its points (between C and E on the picture above).
With three given segments going from a point with three connections (AB, AC and AE on the picture above) and one additional segment between some connected points (segment CE between C and E on the picture above), there is a triplet (in our example it is ACD) that forms a triangle.

Consequently, to prove that in the process of connecting pairs of points to make all triplets good there would eventually have to be formed a triangle, it's sufficient to prove that there would eventually have to be a point with three segments connecting it to other three points.

The plan is to
(1) count all the triplets that can be formed from the given six points and
(2) show that without connecting three points into a triangle or connecting some point to three others (which, as lemma above proved, leads to forming a triangle) it's impossible to make all counted in (1) triplets good.

The total number of triplets is, obviously, the number of combinations of our six points in groups of three, which is
C63 = 6!/(3!·3!) = 20

Now let's proceed to make all triplets good, but obeying the rule of having no more than two segments joining at any single point (since, as we have proved, when three segments join in one point, triangle is unavoidable).

We have to make 20 good triplets, but we will show that we cannot make more than 18 without breaking that rule, which would necessitate the existence of a point with three segments connecting it to three other points, which is sufficient condition for existence of a triangle.

Let's start the process of connecting pairs of points to make good triplets.

In the beginning there are no connecting segments, so we choose any two points (call them A and B) and connect them with a segment.
This is sufficient to make 4 new good triplets: ABC, ABD, ABE and ABF.


Now we have a choice of which points to connect next.
We can either
(a) choose a pair of new points to connect by a segment (for example, D and E) or
(b) choose one new (unconnected) point and one that already has a connecting segment (for example, B and C), or
(c) choose two points that already had connecting segments, which could happen on later steps.

In case (a) we have 4 more good triplets (DEA, DEB, DEC and DEF in our example).

In case (b) only 3 good triplets will be formed (BCD, BCE and BCF in our example).

In case (c) only 2 good triplets will be formed (if segments AB and CD exist, and we connect points B and C with a segment, new good triplets BCE and BCF are formed).

General consideration is that the more segments connect our six points - the more good triplets will be formed.

Let's start with the strategy that assures the maximum number of segments - the one when there are two segments joining at each point, so the rule of not having three segments at any point is preserved.

This can be accomplished if all points are connected into a closed chain:

Obviously, not all triplets are good in this case. For example, ACE or BDF.

Another chained connection
Here triplets ABD or CEF are not good.

Let's count good triplets using the first example of a chained connection above, starting from segment AB and moving clockwise (the order is unimportant, we can connect A-C-B-F-D-E-A, as exemplified on the second picture, and the result will be the same).
Segment AB, being the first, produced 4 good triplets, as was stated above.
Then four consecutive segments BC, CD, DE and EF formed 3 good triplets each.
Final segment FA added 2 more good triplets.
The total number of good triplets is
4+3+3+3+3+2=18
which is short of required 20, which means, to make all triplets good, we need more segments, which will result in some points to be connected by three segments to three other points and forming of a triangle will be guaranteed.

We can try to organize connections differently. Instead of putting all 6 points into a chain, we can do it with only 5 with points A-B-C-D-E, leaving point F outside.

Similar counting of good triplets will result in the following:
Segments AB, as before, created 4 good triplets.
Segments BC, CD, DE, as before, created 3 good triplets each.
Finally, segment EA created two new good triplets: EAC and EAF.
The total number of good triplets is:
4+3+3+3+2 = 15

The last case is to leave two points out of a closed chain as follows.

In this case the number of good triplets is:
from AB - 4,
from BC - 3,
from CD - 3,
from DA - 2 (DAE, DAF),
from EF - 4 (EFA, EFB, EFC, EFD)
The total number of good triplets is:
4+3+3+2+4 = 16
Still less than 20.

There are no logically different cases of connecting the points deserving a consideration, so we came to
CONCLUSION:
to have all 20 triplets as good, we need more that two segments joining at each point; it is impossible to avoid triangles.

Saturday, December 9, 2023

Arithmetic+ 02: UNIZOR.COM - Math+ & Problems - Arithmetic

Notes to a video lecture on http://www.unizor.com

Arithmetic 02


Problem

Prove that
SN = Σn∈[2,N]1/n
is not an integer number for any integer N.

Solution 1

Among fractional numbers in the sum SN there are those of type 1/(2k).
Let's choose among them the one with the maximum power k. This number is less than any other number of this type in a series and the closest to the end of a series among them. Let's call it the least binary fraction.

For example, in the sum
S10 = Σn∈[2,10]1/n
we choose 1/8=1/(2³).

Now let's bring all the numbers in a series to the least common denominator (LCD).
For an example of S10 the LCD=2520 and values of our fractions with this LCD are
1/2 = 1260/2520
1/3 = 840/2520
1/4 = 630/2520
1/5 = 504/2520
1/6 = 420/2520
1/7 = 360/2520
1/8 = 315/2520
1/9 = 280/2520
1/10 = 252/2520

Notice that the numerator of 1/8=315/2520 (a fraction of a type 1/(2k) with maximum power k) equals 315, which is odd, while all other numerators are even.
That means, the sum of numerators with this common denominator is odd, while the least common denominator 2520 is even, which means that the sum S10 cannot be an integer number.

Actually, this situation will be similar with any number of members in a series, that is for any N.
Here is why (and this is the required proof).

Let's analyze the process of determining the least common denominator (LCD).

Any number in the denominators of our series can be uniquely represented as a product of prime numbers.
Then LCD is formed from all the prime numbers in representation of all denominators with the quantity of each prime number being equal to the largest number of these primes among all denominators.

In our example of S10 we have the following representation of denominators:
2 = 2
3 = 3
4 = 2·2
5 = 5
6 = 2·3
7 = 7
8 = 2·2·2
9 = 3·3
10 = 2·5

As we see, the prime numbers we have to use are 2,3,5,7 and the number of these primes in the LCD should be:
prime 2 should be taken 3 times because of denominator 8.
prime 3 should be taken 2 times because of denominator 9.
prime 5 should be taken once.
prime 7 should be taken once.
Therefore, the LCD is
2³·3²·5·7=2520

In general case, in the representation of LCD the number of 2's is the largest in a member 1/(2k) with the largest k that we called above the least binary fraction.
Therefore, in the representation of the LCD as a product of prime numbers there are exactly k 2's and, obviously. other prime numbers, which are all odd, of course.

When we transform all the fractions in a series SN to common denominator, we should multiply numerators (which are all 1's) by all primes in the LCD that are not in a representation of its denominator:

In our example of S10
the numerator of a fraction 1/2 should be multiplied by 2³·3²·5·7/2 =
= 2²·3²·5·7 = 1260

the numerator of a fraction 1/3 should be multiplied by 2³·3²·5·7/3 =
= 2³·3·5·7 = 840

the numerator of a fraction 1/4 should be multiplied by 2³·3²·5·7/2² =
= 2·3²·5·7 = 630

the numerator of a fraction 1/5 should be multiplied by 2³·3²·5·7/5 =
= 2³·3²·7 = 504

the numerator of a fraction 1/6 should be multiplied by 2³·3²·5·7/(2·3) =
= 2²·3·5·7 = 420

the numerator of a fraction 1/7 should be multiplied by 2³·3²·5·7/7 =
= 2³·3²·5 = 360

the numerator of a fraction 1/8 should be multiplied by 2³·3²·5·7/2³ =
= 3²·5·7 = 315

the numerator of a fraction 1/9 should be multiplied by 2³·3²·5·7/3² =
= 2³·5·7 = 280

the numerator of a fraction 1/10 should be multiplied by 2³·3²·5·7/(2·5) =
= 2²·3²·7 = 252


As a result, the only numerator without any 2's in its representation as a product of primes will be the one in the one we called the least binary fraction.
That's why this numerator will be odd, while all others (with one or more 2's in their prime representation) will be even.
Therefore, the sum of all these numerators with the least common denominator will be odd and not divisible by the LCD, which is even.


Solution 2

Among the fractions of our series there are those with prime denominators, which we will call prime fractions.
Let's choose among all prime fractions the one with the largest prime denominator Pmax (hence, the smallest in value among all prime fractions) and call it the least prime fraction.
So, Pmax is the largest prime number not exceeding N.

At this point it's very important to state that all subsequent members of the series after 1/Pmax up to the last one 1/N have denominators not multiple of Pmax.
The reason why it is the case is based on so called Bertrand's postulate that states (and can be proven, but not at this moment) that for any integer M there exists a prime number p greater than M and less than 2·M−2.

If there is another fraction with denominator being a multiple of Pmax than its denominator is, obviously, not less than 2·Pmax and, according to the Bertrand's postulate, there must be another prime number between Pmax and 2·Pmax, so Pmax is not the largest prime number not exceeding N.

In our example with S10 Pmax=7 and the least prime fraction is 1/7.

Now let's bring all the numbers in a series to the least common denominator (LCD) in order to sum up all numerators.
Since this least prime fraction has the largest prime denominator, this prime denominator will be represented only once in the LCD.

In our example with S10 LCD is 2³·3²·5·7=2520 and, as we see, number 7 is presented only once.

The next step to calculate SN is to bring all fractions to the least common denominator by multiplying each numerator (all numerators are 1's) by all prime numbers in the LCD that are not in a prime representation of a corresponding denominator.

Because the largest prime denominator in a series occurs only once in the LCD and does not occur in prime representation of any denominator other than that of the least prime fraction, this largest prime denominator will be represented in all new numerators of all fractions with common denominator except in the numerator of the least prime fraction.

Consequently, all new numerators, except the one of the least prime fraction will be divisible by Pmax.

In our example with S10 and Pmax=7 the prime number 7 occurs exectly once in every new numerator except for 1/7.
Therefore, the sum of these new numerators will not be divisible by Pmax and the result of the summation cannot be an integer number.

Wednesday, December 6, 2023

Arithmetic+ 01: UNIZOR.COM - Math+ & Problems - Arithmetic

Notes to a video lecture on http://www.unizor.com

Arithmetic 01


Problem A

Given n pieces of rope.
Some of them are cut into n smaller pieces.
Then, again, some of the obtained pieces are cut into n smaller one.
This process is repeated a few times and, as a result, the final number of pieces is N.
Prove that N−n is divisible by n−1.

Solution A

Assume, out of initial n pieces of rope we have chosen k1 to cut each into n pieces.
Then, after the first cut we will have the total number of pieces equal to
N1 = n − k1 + n·k1 =
= n + (n−1)·k1

As we see, N1−n is divisible by n−1.

Assume, out of obtained after the first step N1 pieces of rope we have chosen k2 to cut each into n pieces.
Then, after the second cut we will have the total number of pieces equal to
N2 = N1 − k2 + n·k2 =
= N1 + (n−1)·k2 =
= n + (n−1)·k1 + (n−1)·k2 =
= n + (n−1)·(k1+k2)

As we see, N2−n is also divisible by n−1.

Obviously, it's easy to prove by induction that after sth step the number of obtained pieces of rope will be
Ns = n + (n−1)·(k1+k2+...+ks )
and Ns−n will be divisible by n−1, which is what's required to prove.


Problem B

One person thinks about some number from 0 to 1000.
Another person can ask questions about this number to determine it.
What is the minimum number of questions needed to find this number, if the answers can be either YES or NO?

Solution B

Considering the answers are YES or NO, one of the ways is to find the binary expression for the number.
Since the number is less than 1024=210, it's sufficient to ask 10 questions about each binary digit.

So, the first question is: "Is the first digit in a binary representation of your number as 10 binary digits (including leading zeros) equal to 1? Based on the answer, we determine this first digit to be 1 or 0.
Then we repeat the same for the second binary digit etc.

Alternatively, the number can be guessed by multiple steps of dividing the group of all possible numbers into two approximately equal parts.
Then the first question should be: "Is your number greater than 500?".
If the answer is YES, the next question is "Is it greater than 750?", but if the answer is NO, the next question is "Is it greater than 250?".
And so on.


Problem C

There is a set of 100 numbers, each from 1 to 9.
The sum of these numbers is 789.
Is it possible to choose 70 numbers out of this set with a sum less than 500?

Solution C

If we select 70 numbers with a total sum of less than 500, the remaining 30 numbers must have sum not less than 789−500=289.
But the maximum sum of 30 numbers, each of which is from 1 to 9, is 9·30=270, which is insufficient to cover 289 needed to complete the total sum to 789.

Answer C
It is impossible to choose 70 numbers out of this set with a sum less than 500.


Problem D

A regular clock with large round face and 12 numbers for 12 hours is used for this problem.
A coin is placed onto each number of this clock - a total of 12 coins.
In one move two coins should be moved from their numbers into a neighboring ones, but one of these coins should move clockwise, while another - counterclockwise.

Is it possible to collect all coins on one number on the clock by performing th described moves?

Solution D

Assign a value to each position of coins as follows.
If there are ni coins on number i, the value of this coin position is
V = Σi∈[1,12] i·ni

Initially, when there is one coin per number on a clock, the total value is
V=1+2+3+4+5+6+
+7+8+9+10+11+12=78
.

In one step one coin that is on number n and steps clockwise will increase the value V of a position by 1 except when it moves from number n=12 to n=1, in which case the value of a position will decrease by 11.

In one step one coin that is on number n and steps counterclockwise will decrease the value V of a position by 1 except when it moves from number n=1 to n=12, in which case the value of a position will increase by 11.

The combination of these two steps, which constitutes a single move, will either retain the same value of a position (for example, 3→4, 10→9) or increase the value by 12 (for example, 3→4, 1→12) or decrease the value by 12 (for example, 4→3, 12→1).

In any case, no matter how many moves we make, the value of a position V is changing by a number that is a multiple of 12.

But, if we consider the value of a position when all 12 coins are on the same clock number n, the value of a position is V=12·n - a multiple of 12.

Starting from an initial position value of 78 (not a multiple of 12) and changing this value by a number that is a multiple of 12 on each move, we will never come to a position whose value is a multiple of 12.

This proves the impossibility to gather all coins on the same clock number.