Bassel Hamada Ibrahim IYMC Pre Final
Bassel Hamada Ibrahim IYMC Pre Final
Problem A.1
You are given the function f : R → R and the family of functions gn (x) : R → R:
x
f (x) = x and gn (x) = + 2n .
n
Determine the distances from the points of intersection between f and gn to the origin.
Solution
To find the points of intersection between f (x) and gn (x), we solve the equation:
f (x) = gn (x),
which means:
x
x= + 2n .
n
Rearranging terms:
x 1
x − = 2n ⇒ x 1− = 2n .
n n
Simplify the left-hand side:
2n 2n n · 2n
x= = = .
1 − n1 n−1
n
n−1
Thus, the x-coordinate of the intersection point is:
n · 2n
x= .
n−1
Since f (x) = x, the point of intersection is:
n · 2n n · 2n
, .
n−1 n−1
The distance from this point to the origin is calculated using the Euclidean distance
formula: p
d = x2 + y 2 .
n·2n
Substituting x = y = n−1
:
s 2 2
n · 2n n · 2n
d= + .
n−1 n−1
Simplify: s 2
n · 2n √
n · 2n
d= 2· = · 2.
n−1 n−1
Solution for International Youth Math Challenge Solver: Bassel Hamada Ibrahim
Conclusion
Final Answer
The distance from the points of intersection to the origin is:
n · 2n √
d= · 2.
n−1
This formula is valid for n > 1.
Problem A.2
Find the derivative f ′ (x) of the following function with respect to x:
r q p
f (x) = sin(x) + cos(x) + tan(x).
Solution
We want to differentiate
r q p
f (x) = sin(x) + cos(x) + tan(x) .
Define p p
h1 (x) = cos(x) + tan(x), and h2 (x) = sin(x) + h1 (x).
p 1
Then f (x) = h2 (x) = (h2 (x)) 2 .
p
2a. Derivative of h1 (x)
d 1
(h1 (x))1/2 = p h′1 (x).
dx 2 h1 (x)
Now, p
h1 (x) = cos(x) + tan(x),
hence
d p sec2 (x)
h′1 (x) = − sin(x) +
tan(x) = − sin(x) + p .
dx 2 tan(x)
Thus,
d 1 sec2 (x)
q p
cos(x) + tan(x) = q − sin(x) + p .
dx p 2 tan(x)
2 cos(x) + tan(x)
1 sec2 (x)
h′2 (x) = cos(x) + q − sin(x) + p .
p
2 cos(x) + tan(x) 2 tan(x)
we substitute:
sec (x) 2
− sin(x) + √
1 h 2 tan(x)
i
f ′ (x) = r q × cos(x) + q p .
p
2 sin(x) + cos(x) + tan(x) 2 cos(x) + tan(x)
Final Answer
sec (x) 2
− sin(x) + √
1 h2 tan(x)
i
f ′ (x) = r q · cos(x) + q p .
p
2 sin(x) + cos(x) + tan(x) 2 cos(x) + tan(x)
Solution for International Youth Math Challenge Solver: Bassel Hamada Ibrahim
Problem B.1
(a) Determine the probability for a short sequence of k digits1 to occur in a longer
sequence of n randomly selected digits.
(b) The digits of π appear to be randomly distributed. How many digits of π are needed
to expect the sequence 9876543210 with 50% probability?
(c) The sequence of digits 9876543210 first appears in π starting at the 21,981,157,633rd
decimal place. Is this finding expected?
Solution
(a) Probability of a k-digit sequence in n digits
We assume each digit among n is chosen uniformly at random from {0, 1, 2, . . . , 9}. Let
S be the specific k-digit sequence. There are (n − k + 1) possible starting positions in an
n-digit string (assuming n ≥ k), and each has probability 10−k of matching S. Thus, the
expected number of occurrences of S is
λ = (n − k + 1) 10−k .
λ = (N − 10 + 1) × 10−10 .
We want a 50% probability of at least one occurrence, i.e. 1−e−λ = 0.5. Solving e−λ = 0.5
gives λ = ln(2). Thus,
Therefore, we need about 6.93 billion digits of π to have a 50% chance of seeing the
sequence “9876543210.”
Solution for International Youth Math Challenge Solver: Bassel Hamada Ibrahim
Final Answers
Conclusion
The probability that a k-digit sequence occurs in n random digits is approximately:
h i
P ≈ 1 − exp −(n − k + 1) · 10−k .
For part (b), we found that 6.93·109 digits are needed for 50% probability, and part
(c) confirms that the observed position is within the plausible range for random
behavior.
Problem B.2
Solution for International Youth Math Challenge Solver: Bassel Hamada Ibrahim
Solution
1. Outer Circle Radius and Area
We know the outer circle has circumference
C
C = 2πR =⇒ R = .
2π
Hence, the area of the outer circle is
2
C2
2 C
πR = π = .
2π 4π
Pairwise Overlap Area. When two circles of radius r have center–center distance d,
their pairwise “lens” overlap area is given by
d d√ 2
A∩ = 2r2 cos−1 − 4r − d2 .
2r 2
(See Circle–Circle Intersection
√
references in the Bibliography.)
R R 3
Substitute r = 2 and d = 2 . Then
√
R 3
√ √ π
d 3
= 2
R
= , cos−1 23 = .
2r 2× 2 2 6
Since there are three pairs of small circles, the total pairwise overlap (summed over all
pairs) is
√ 2! √
πR2 3R πR2 3 3 R2
3 A∩ = 3 − = − .
12 8 4 8
Hence:
√ ! √
πR2 πR2 3 3 R2 πR2 3 3 R2
|S1 ∪ S2 ∪ S3 | = 3 − − + 0 = + .
4 4 8 2 8
C
Since R = 2π
, we have
2
C2
2 C
R = = .
2π 4π 2
Thus, multiplying out,
√
πR2 3 3 R2 C2 π √
3 3 C2 √
Uncovered (White) Area = − = − = 4π − 3 3 .
2 8 4π 2 2 8
32π 2
Final Answer:
√
πR2 3 3 R2 C2 √
Uncovered Area = − = 4π − 3 3 .
2 8 32π 2
Solution for International Youth Math Challenge Solver: Bassel Hamada Ibrahim
Numerical Check
For confidence, set R = 2. Then the outer circle’s area is 4π ≈ 12.5664. Each smaller
√ has radius 1 and area π ≈ 3.1416. The distance between each pair of smaller
circle √ centers
is 3 ≈ 1.732. By the standard lens formula, two unit circles separated by d = 3 overlap
in area
√
√ √ √ π 3
2 −1 3 3
A∩ ≈ 2 × 1 cos 2
− 2 4−3 = − ≈ 1.0472 − 0.8660 = 0.1812.
3 2
Triple that (for three pairs) is 0.5436. So the union of the three small circles is
Hence uncovered area in the big circle is 12.5664 − 8.8812 = 3.6852. Our closed-form
formula for R = 2 gives
√ √
π(22 ) 3 3(22 ) 12 3
− = 2π − ≈ 6.2832 − 2.598 = 3.6852,
2 8 8
which exactly matches.
Conclusion
By placing three smaller circles of radius R2 at 120◦ intervals around the center of
the outer circle (radius R), the total area of these smaller circles can be obtained
using the Inclusion–Exclusion Principle and the standard circle–circle intersection
formula. The uncovered (white) region in the large circle turns out to be:
√
πR2 3 3 R2 C2 √
White Area = − = 4π − 3 3 ,
2 8 32π 2
C
where R = 2π
is determined by the given circumference C.
Problem C.1
You are given three “diagonal” sequences of numbers (left, middle, and right). They are
arranged so that each row shows three values, forming partial diagonals rather than a
simple rectangle. The numbers proceed as follows:
(i) Find a recursive relation using numbers from the row above.
(ii) Find a recursive relation within that same sequence alone.
(b) Write a direct (nonrecursive) formula for the n-th term of each sequence.
(c) Let an and bn be the n-th terms of the left and middle sequences. Which number
does bn /an approach as n grows large? Explain.
Solution
(a)(i) Using the Row Above. If we label each row n as (an , bn , cn ), we notice:
(a)(ii) Within Each Sequence Alone. Surprisingly, each column (the left, middle,
or right diagonal) follows the same rule:
xn+2 = 2 xn+1 + xn .
5 = 2 · 2 + 1, 7 = 2 · 3 + 1, 10 = 2 · 4 + 2, . . .
The final forms (using different initial conditions) turn out to be:
√ √ √ √ √
(1 + 2)n − (1 − 2)n (1 + 2)n + (1 − 2)n 2 √ n √ n
an = √ , bn = , cn = (1+ 2) −(1− 2) .
2 2 2 2
Each sequence just has its own coefficients based on the first two terms.
√ √
(c) The Ratio bn /an . Notice that |1 − 2| < 1, so √ ( 1 − 2 )n becomes very small
when n is large. Both an and bn are dominated by (1 + 2)n . The exact ratio settles to
bn √
lim = 2.
n→∞ an
√
“grow like” (1 + 2)n , so their fraction is a constant in the
Intuitively, bn and an both √
limit, and that constant is 2.
Solution for International Youth Math Challenge Solver: Bassel Hamada Ibrahim
Conclusion
Key Results
Problem C.2
Given Article: On the Distribution of φ(σ(n)), Dixit, A. B., Bhattacharjee, S. Elec-
tronic Journal of Combinatorial Number Theory (2024).
(i) Computing φ(8). Recall that the Euler totient function φ(n) is defined as
Y 1
φ(n) = n 1− ,
p
p|n
where the product is taken over all prime divisors p of n. For n = 8, we note that
8 = 23 ,
Thus, φ(8) = 4.
σ(12) = 1 + 2 + 3 + 4 + 6 + 12 = 28.
(iii) Computing φ(σ(18)). First we determine σ(18). Its positive divisors are
1, 2, 3, 6, 9, 18. Summing these gives
σ(18) = 1 + 2 + 3 + 6 + 9 + 18 = 39.
We next apply the Euler totient function to σ(18) = 39. Note that
39 = 3 × 13,
(b) Explain in your own words the statement of Theorem 1 in the article.
Overview. Theorem 1 examines how large the quantity φ(σ(n)) can be relative to n,
for n up to some bound x. In other words, it counts how often φ(σ(n)) reaches a certain
fraction of n and shows that such cases are scarce.
φ(σ(n)) ≥ c n.
The theorem focuses on how many such n ≤ x can exist, as x grows large.
Theorem 1 provides an upper bound for |Sc (x)|, stating something like
π2 x
|Sc (x)| ≤ + (an error term with iterated logs),
6 c log4 (x)
3. Interpretation:
Because dividing by log4 (x) (and further iterated logarithms) grows very slowly, this
shows that only a relatively small proportion of integers up to x satisfy φ(σ(n)) ≥
c n. In other words, most n ≤ x do not get that high.
Solution for International Youth Math Challenge Solver: Bassel Hamada Ibrahim
every n ≤ x fulfills φ(σ(n)) < c n. Because c was arbitrary, this effectively says
that φ(σ(n)) hardly ever comes close to n itself.
5. Conclusion:
Theorem 1 characterizes the distribution of φ(σ(n)) relative to n. While φ(σ(n))
can occasionally be a sizable fraction of n, those cases are rare, and for the vast
majority of integers, φ(σ(n)) remains well below n.
Solution to (c)
Statement to Prove: Show that the number of integers n ≤ x for which σ(n) is odd is
log log x
#{ n ≤ x : σ(n) is odd} ≤ α · for some α > 0 and x > 9.
log x1/x
1
Note that log x1/x = x
log x, so
σ(n) is odd ⇐⇒ n can be written as n = 2a m2 (for nonnegative integers a and integer m ≥ 1).
For σ(n) to be odd, each factor in the product must be odd. If pi is odd, then (1 +
pi + p2i + · · · + pαi i ) is odd precisely when αi is even. Meanwhile, if pi = 2, the sum
1 + 2 + · · · + 2αi = 2αi +1 − 1 is always odd for any αi ≥ 0. Hence, every odd prime in
the factorization must appear to an even exponent. That means the odd-part of n is a
perfect square, while the power of 2 is unrestricted. Hence, n = 2a m2 .
Solution for International Youth Math Challenge Solver: Bassel Hamada Ibrahim
2. Counting Such n ≤ x
We need to count how many integers of the form 2a m2 lie below or equal to x. That is,
2a m2 ≤ x.
Conclusion
√
Thus we have shown that the count of n ≤ x with σ(n) odd is O x , and this is indeed
bounded above by a term of the form α log log x
log x1/x
for any x > 9. This completes the proof.
Solution for International Youth Math Challenge Solver: Bassel Hamada Ibrahim
Step-by-Step:
1. Euler’s Totient Formula.
For any integer m > 1, Y
1
φ(m) = m 1− p
.
p|m
Hence Y
1 − p1 .
φ σ(n) = σ(n)
p|σ(n)
Y Y
1 − p1 ≤ 1 − p1 .
√
p | σ(n) p≤ k n
P σ(n)
2. Using the Known Asymptotic for n
From standard divisor-sum estimates we have the asymptotic expansion:
X σ(n) π2
x + O log2 x .
=
n≤x
n 6
Summary. Equation (1) follows by counting how many n ≤ x can possibly satisfy σ(n) ≥
δn, using the inequality σ(n)/n and known asymptotics on its summatory function. The
complementary subset—those n with σ(n) < δn—then constitutes at least the claimed
lower bound. This establishes the distribution result for the condition σ(n) < δn.
Approach
We employed a direct, naive algorithm that:
def sum_of_divisors ( n ) :
"""
Returns sigma ( n ) : the sum of all positive divisors of n .
Naive approach for illustration .
"""
total = 0
for d in range (1 , n +1) :
if n % d == 0:
total += d
return total
def euler_phi ( m ) :
"""
Computes Euler ’s totient phi ( m ) by prime factorization .
"""
if m < 2:
return 1
phi_val = m
temp = m
p = 2
while p * p <= temp :
if temp % p == 0:
while temp % p == 0:
temp //= p
phi_val -= phi_val // p
p = p + 1 if p == 2 else p + 2
if temp > 1:
phi_val -= phi_val // temp
return phi_val
Solution for International Youth Math Challenge Solver: Bassel Hamada Ibrahim
def check_phi_sigma (x , c ) :
"""
Counts how many integers n <= x satisfy phi ( sigma ( n ) ) <=
c * n.
"""
count = 0
for n in range (1 , x +1) :
s = sum_of_divisors ( n )
phi_s = euler_phi ( s )
if phi_s <= c * n :
count += 1
return count
# Example demonstration :
if __name__ == " __main__ " :
import sys
# If arguments are provided , parse them , else use small
defaults .
if len ( sys . argv ) >= 3:
X = int ( sys . argv [1])
C = float ( sys . argv [2])
else :
X = 30
C = 2.0
result = check_phi_sigma (X , C )
print ( f " For x ={ X } and c ={ C } , count is { result }. " )
print ( f " Proportion = { result / X :.3 f } " )
Solution for International Youth Math Challenge Solver: Bassel Hamada Ibrahim
• (c) We proved the desired counting bound for those n ≤ x with σ(n) odd.
• (e) We explained how the authors derive Equation (1) from previous sum-
mations and complementary counting.
• (f*) We provided the above Python code to check numerically how often
φ(σ(n)) ≤ c n holds for given c and x, thus offering empirical support for the
theoretical results.
“A person who never made a mistake
never tried anything new.”
– Albert Einstein