PS1sol 2023 v2
PS1sol 2023 v2
PS1sol 2023 v2
Due Monday 30th January 2023 at 12 noon, Tabula submission (a .pdf file).
Solution:
24
2. If 1234567654321eight ≡ x with −24 < x ≤ 0, what is x?
Solution: There are many ways to solve this. Perhaps the most straightfor-
ward one is to convert into decimal number and then take the modulo 24 of
that number.
Here’s another way which is shorter, but requires some non-trivial steps. Note
8
that 24 = 8∗3, and 1234567654321eight ≡ 1. Thus, the remainder of 1234567654321eight
when divided by 24 is either 1, 9, 17, that is, the possible candidates for x are
−7, −15, −23, respectively. To identify which one of these is the correct answer,
we need to check for the modulo 3 result of 1234567654320eight (after subtract-
ing 1 from the original number).
3
We have 8 ≡ −1, so
3
1234567654320eight ≡ (−1) ∗ 123456765432eight
3
= (−1)· 811 + (−2)· 810 + · · · + (−2)· 80 ≡
1· (−1)12 + 2· (−1)11 + · · · + 2· (−2)0 =
(1 − 2) + (3 − 4) + (5 − 6) + (7 − 6) + (5 − 4) + (3 − 2) = −3 + 3 = 0.
3
That is, 1234567654320eight ≡ 0. We also know that modulo 24 of 1234567654320eight
is either −8, −16, −24, respectively. Among this, the only option that has 0
modulo 3 is -24. Hence
24 24
1234567654321eight = 1234567654320eight · +1 ≡ −24 + 1 ≡ −23.
3. Use the Euclidean Algorithm to find the GCD of 6772 and 2775 (for the curious
minds, these are the numbers of the current year 2023 in the Assyrian and Julian
Calendars, respectively).
√ !2023
2 1
5. Find the real and imaginary parts of − −√ .
2 −2
√ !2023 √ √ !2023
2 1 2 2
− −√ = − + i .
2 −2 2 2
√ √ √
This is because √1 = √1 = √ − 2i√ = − 2i
. Therefore − √1−2 = 2i
.
−2 2i 2i(− 2i) 2 2
√√
2 2
Now we write − + i in polar coordinates:
2 2
√ √
2 2
− + i = cos(3π/4) + i· sin(3π/4).
2 2
By De Moivre’s theorem, we get
√ √ !2023
2 2
− + i = cos(6069π/4) + i· sin(6069π/4)
2 2
= cos(5π/4) + i· sin(5π/4)
1 1
= −√ − √ i
2 2
Therefore
√ !2023
2 1 1 1
− −√ = − √ − √ i,
2 −2 2 2
and thus the real and imaginary parts are both − √12 respectively.
√ √
6. Find the set of unit vectors in R2 which are at an angle of π/6 to ( 3, 6).
Solution: Recall that, for any two vectors u and v, we have u · v = |u||v| cos θ,
where θ is the angle between the vectors.
√
3
√ √ √
Since cos(π/6) = and |( 3, 6)| = 3, we seek a vector (x, y) such that 3x +
√ √ 2
6y = 3 2 3 and x2 + y 2 = 1, since (x, y) is a unit vector.
√
By rearranging the first equation, we obtain x = 32 − 2y. By substituting this
√ 2
in the second equation, we get 1 = 32 − 2y + y 2 . Therefore y satisfies the
√ 5
quadratic equation y 2 − 2y + 12 = 0. Since
√
2 5 1 1 1 1
y − 2y + = y−√ − √ y−√ + √ ,
12 2 2 3 2 2 3
the two possible values for y are √12 ± 2√1 3 . Thus the two desired vectors are
1 √1 , √1 + √
1 1 √1 , √1 − √
1
2
− 6 2 2 3
and 2
+ 6 2 2 3
.
Marking scheme: 1 point for each question answered correctly, 0.5 point for partial answer, 0
point otherwise.
Max number of points: 6.