You are on page 1of 3

escap

Manu Sankaran
January 2024

1 Qs
1.1 Question 1: Easy
Part I:
Alice: Hey Bob, I need you to help me move this weekend. Can you?
Bob: Yeah sure, why not?
Alice: Great, do you have anyone else you can bring along?
Bob: Yeah, Charlie and Daniel can join me.
Alice: Great, well do you have an estimate on how long it’d take if just you
and Charlie were to work together?
Bob: Hmmm we could probably do it in about 6 hours.
Alice: What if you had Daniel instead of Charlie?
Bob: Oh well Daniel’s a fast worker. The two of us could wrap it up in
roughly 4 hours.
Alice: And in case you can’t make it, how long would the two of them take?
Bob: Roughly 8 hours. I’m much faster than they are hehe.
Alice: Well, I’d like to know when we’ll finish if we start at 10:00 a.m. and
if all three of you work together.
Bob’s answer is c
Part II: Compute the following integral:
R π2 √
(2 3 sin2 (x) + x cos x3 ) dx

0
The above value is now d.
Compute e = 4d √ √
If you’ve done everything right, e should be in the form of p 3π+qπ+r 3+s,
where each of p, q, r, s are integers. Take the integer (p + q + r)(s + qr)
Part III: Add c and pqr to get the final code

1.2 Question 2: Easy


Let S be the set of all numbers between 1 and 1023, that are divisible by 3 or
4 but not by 5. What is the cardinality of this set?

1
1.3 Question 3: Annoying but Easy
Part I:
Consider the following 4 statements:
A) Given 25 blind people and 25 deaf people sitting in a line in some order,
it will always be possible to find at least one person whose two immediate
neighbours are deaf.
B) Given two distinct numbers, x and y, both larger than 3, it is impossible
to decide whether or not xy > y x without calculation.
C) You are more likely to obtain a royal flush (10,J,Q,K,A all of same suit)
in a fair game of poker (assume you’re given all 5 cards simultaneously) than
you are to win the lottery(assuming participation from 5 billion people).
Assign 1 to a statement number if the statement is True, and 0 if it is False.
Part II: There lies below a sequence of statements. Using the above 3 statements
and the truth values assigned, form a string of 1s and 0s.
¬B ∧ C, A ∧ B, C ∨ A, C ∧ B, ¬C ∧ A, ¬B ∨ C
Part III: Compute the value of the string in Ternary and that will be your code
:D

1.4 Question 4: Moderate


You were in charge of making records of a running race that took place between
8 people. You wake up the morning of the race and see that you’ve missed
the whole race because you were up computing the likelihood of your favourite
runner winning last night.
Regardless, you make it to the stadium 5 minutes after the race takes place
and the race’s host wants you to publish the results of the race soon for everyone
to see. Unfortunately for you, you don’t know the results, and nobody is willing
to tell you the results. If you don’t publish the results, it’s off with your head!
However, suddenly you see that everything has just... stopped. Nobody is
moving, the wind isn’t howling and the only thing you hear is your heart beating
faster and faster. A time-stopping wizard has arrived. He tells you the following
information:
1) All runners wore differently coloured shirts
2) The runner in the blue shirt finished before the runner in the green shirt.
3) The runner in the red shirt finished before the runner in the orange shirt.
4) The runner in the white shirt finished after the runner in the black shirt.
5) The runner in the pink shirt finished after the runner in the purple shirt.
He then tells you to give him any positive integer of your choice. He gives
you the following conditions for the positive integer:
1) No matter what number you give the wizard, you will be allowed to write
down as many finishing orders as the number you give the wizard. The wizard
will then point out which, if any, of the orders written was the correct finishing
order.
2) The number cannot be larger than the largest number that would ensure
the probability of your success being 1/3.

2
What number do you give the wizard to maximise your chances of success?

2 Answers
2.1 A1
Bob’s answer is 1:42 as they would take roughly 3 hours
√ and 42 minutes,
√ ending
at 1:42. Hence, c = 142 The integral evaluates to 2π 3 + 3π + 18 3 − 36 and
the given integer is (2 + 3 + 18)(−36 + 3 · 18) = 414 Final answer is 556

2.2 A2
408

2.3 A3
A is true, B is false, C is true.
The corresponding sequence is hence, 1, 0, 1, 0, 0, 1, which evaluates to 271
Ans is 271

2.4 A4
As no intra-pair information is given, you need to just choose pairs of slots
among 8 slots, which evaluates to be 2520 choices. To maximise probability
(= 13 ), you would need to answer 840

You might also like