date: 2025-03-06
title: AAM-HW-2
status: DONE
author:
- AllenYGY
tags:
- NOTE
- Assignment
- AAM
publish: true
AAM-HW-2
The aspect ratio of a rectangular image or screen is the ratio of its width to its height. It is usually expressed as
Calculate the aspect ratio of your phone or computer, simplify so that x : y
are integers in lowest terms,
i.e. gcd(x, y) = 1
.
What is the aspect ratio of TV series, anime, or video channels (Bilibili, YouTube...) that you are currently watching?
Phone/computer aspect ratio: Example -
Name one TV series and one anime with a 4:3
aspect ratio, together with its release date.
TV series with 4:3 aspect ratio: Friends (Released: September 22, 1994).
Anime with 4:3 aspect ratio: Naruto (Season 1) (Released: October 3, 2002).
What is the aspect ratio of a rectangle that when folded in half lengthwise yields a smaller rectangle with the same aspect ratio?
A sequence of numbers defined by specifying the values of
i. Equation for
Given the recurrence relation:
Dividing through by
Rearranging:
This is a quadratic equation:
Thus, the two solutions for
ii. Fibonacci numbers
For Fibonacci numbers:
Solving using the quadratic formula:
Thus, the two solutions are:
Knowing that
Solution to part iii:
The guess is that:
We are tasked with finding
Step 1: Use the first condition
Substituting
Since
From
Step 2: Use the second condition
Substituting
Since
Factor
From
Step 3: Compute
Recall that
Simplify:
Thus:
Solve for
From
Final Answer:
Choose the first question
For example, for 4 beats, he can shout "Heng Heng Ha-Hi!".
Ancient Indian poet and mathematician Pingala (around 200 BC) studied questions of this type, in the context of Sanskrit poetry.
To solve how many ways Mr. Chou can shout for 13 beats:
The problem reduces to a Fibonacci sequence:
Compute up to
Final Answer:
What is the prime factorization of 60?
Prime factorization:
List all numbers between 1 and 60 which are coprime to 60. What is Euler's totient
A number is coprime to 60 if it shares no common prime factors with
That means numbers that are not divisible by the prime factors
The numbers coprime to 60 are:
Euler's totient function for
For two of the numbers
Let's find the modular inverses for two numbers:
Consider
Using the extended Euclidean algorithm, we find
Consider
Using the extended Euclidean algorithm, we find
Apply the Euclidean algorithm to
Decompose a
Compute
The last non-zero remainder is:
Work Backwards to Find the Linear Combination
We now express
Start with the second-to-last equation:
Substitute
Substitute
Substitute
Substitute
The
General solution:
The general solution to
Solve the system of congruences:
Step 1. Compute the product of the moduli.
Step 2. Compute individual terms
Let
For
Using the extended Euclidean Algorithm:
For
Using the extended Euclidean Algorithm:
For
Using the extended Euclidean Algorithm:
Step 3. Construct the solution using the Chinese Remainder Theorem formula.
The solution is:
Add them together:
Simplify modulo
Thus, the solution is:
A wizard is trying to hide a magical scroll. The scroll is located such that:
Where is the scroll located? To calculate this, use the magic formula:
Replace