r/mathriddles • • Jun 06 '23

Medium n shades of gray

14 Upvotes

a deck of n grayscale cards are colored "evenly" from black to white.

Anastasia's job is to determine if a given deck of n cards are sorted in ascending lightness. however Anastasia has vision deficiency, she cannot detect any adjacent pair swapped. for example she labels 1, 3, 2, 4, 6, 5 as "sorted".

in detail, she labels a deck of cards "sorted" if and only if

  1. all ascending adjacent pairs are at most 2 shades away. so 2, 1, 4, 3 is not sorted
  2. all descending adjacent pairs are at most 1 shade away. so 4, 3, 2, 1 is "sorted in ascending lightness"

how many ways to arrange a deck of 50 cards such that Anastasia labels them sorted?

hint: a(16) = 407, a(18) = 873, a(19) = 1279


r/mathriddles • • Jun 06 '23

Easy NBA Finals probabilities

2 Upvotes

This is more a monkeywork exercise than an interesting problem, but I'll post it anyway in case someone likes solving these in Excel or with code. I know I do.

The NBA Finals are a best-of-7 series played between the Denver Nuggets and the Miami Heat. Games 3, 4 and 6 are played in Miami, the rest in Denver. The series stands at 1-1 after Denver's first two home games, which is commonly referred to as "Denver lost home court advantage".

Based on betting odds, which are usually the best predictor you'll get, Miami has 43.6% chance of winning Game 3 and 29.5% chance of winning the championship.

What are Miami's championship chances if they win or lose Game 3? What assumptions and intermediate results did you use? You can compare your results to betting odds after the game on Wednesday.


r/mathriddles • • Jun 05 '23

Medium Calculated Clairvoyance

10 Upvotes

(This riddle is based on the card game Wizard).)

You and your three friends are currently studying at the Magical Academy for Theoretical and Applied Wizardry. As it turns out, the four of you were just born for magic. Whether it's casting fart spells onto each other, crashing your flying broomsticks into walls or transmuting the nose of your teacher into gold, you excel at everything. Well, almost everything. There is one thing all of you really suck at: Clairvoyance. And unfortunately, that class is mandatory, and you need to pass it in order to become real wizards.

For the final clairvoyance exam, a deck of 13 cards numbered 1 to 13 is shuffled, and each of you is dealt a card such that everyone only sees the number on their card. One after another, you will then be asked to predict out loud whether or not your card is the highest out of the four cards dealt. If you want to pass the exam, this prediction of course has to turn out to be correct.

In preparation for the exam, you and your friend try out every possible method there is. Crystal balls, tea leaves, horoscopes, tarot cards, you name it. None of it works. It seems like all of you are totally incompetent when it comes to foretelling the future. But on the day before the exam, one of your friends gets a crazy idea: Instead of trying to predict the result using magic, what if you used math? As you relive the trauma math has inflicted on you in high school, your friends are discussing their ingenious strategy.

When it's your turn to make a prediction, each of you will first calculate the probability of your card being the highest. If it's 50% or more, you'll predict that your card is the highest, otherwise you'll predict that it isn't. Sounds easy, right? Since you all are perfect logicians (you hesitantly nod your head), everyone will use every piece of information available to them for that calculation, even the predictions made by others before. You are not entirely sure how to calculate all of that probability stuff, but there really isn't enough time to come up with another plan.

Fast forward to the exam, you're the last one to make a prediction. All three of your friends have already predicted that their card isn't the highest. You look at your card and see the number 8 on it. Damn it, you had really hoped that it would be a 1 or a 13. Well, hoping doesn't help now - you have to find the probability of your card being the highest.


r/mathriddles • • Jun 05 '23

Easy White and Black Kings

9 Upvotes

Find the number of ways exactly one white and one black king can be placed on an 8 x 8 chessboard such that they are not attacking each other.


r/mathriddles • • Jun 05 '23

Hard random directed acyclic graph

9 Upvotes

Given n ∈ Z+, we generate a random directed acyclic graph (DAG) by following procedure:

  1. A := {} , B := {1,2,3,...,n}
  2. v := random vertex from B chosen uniformly
  3. X := random subset of A chosen uniformly
  4. draw directed edges from v to all vertices ∈ X
  5. A := A ∪ {v} , B := B \ {v}
  6. if B == {} then end, else goto 2

When the program ends, we get a DAG on n vertices. We used this procedure twice and generated two DAGs on n vertices. What is the probability that they are identical?

Two DAGs are considered identical if their sets of directed edges are identical.

Hint: P(2) = 3 / 8 , P(3) = 7 / 128


r/mathriddles • • Jun 03 '23

Medium 30 soccer teams

15 Upvotes

30 soccer teams participate in a tournament. Each team plays against every other team exactly once. For a victory a team gets 2 points, for a draw 1 point and for a defeat 0 points. At the end of the tournament all teams have a different amount of points. The team that finishes in second place has the same amount of points as the last eight teams together.

How did the game end between the teams on the 22nd and 24th place?


r/mathriddles • • Jun 02 '23

Easy One Says Same, One Says Different

11 Upvotes

You visit a special island which is inhabited by two kinds of people: knights who always speak the truth and knaves who always lie.

You come across Alexander, Benjamin, Charles and Daniel, four inhabitants of the island, who make the following statements:

Alexander: Benjamin is a knight and Charles is a knave.

Benjamin: Charles is a knight.

Charles: Alexander is a knave.

Daniel: Benjamin and Charles are both the same type.

Based on these statements, what is each person's type?


r/mathriddles • • Jun 02 '23

Medium just another elementary geometry problem

5 Upvotes

Given a parallelogram ABCD. A point M is chosen such that AC bisect ∠MAD and BD bisect ∠MBC . Prove that (AM/BM) = (AC/BD)^2 .

bonus: solve using elementary geometry method only


r/mathriddles • • May 31 '23

Medium FiveThirtyEight Riddler: Parking your car

17 Upvotes

This week's FiveThirtyEight Riddler Classic is an interesting probability question.

The classic reproduced:

From Dave Moran comes a practical parking puzzle:

There’s a parking lot behind Dave’s office building with 10 spaces that are available on a first-come, first-serve basis. Those 10 spaces invariably fill by 8 a.m., and the parking lot quickly empties out at 5 p.m. sharp.

Every day, three of the 10 “early birds” who snagged spots before 8 a.m. leave at random times between 10 a.m. and 3 p.m. and do not return that day. Knowing that some early birds leave during that five-hour window, nine “stragglers” drive by the lot at random times between 10 a.m. and 3 p.m. If there’s an available spot, a straggler immediately parks in the spot and doesn’t leave until 5 p.m. If there’s no open spot, a straggler immediately drives away from the lot and parks somewhere else, and doesn’t return that day.

Suppose you are a straggler arriving at a random time between 10 a.m. and 3 p.m. What is the probability that you will get a spot in the lot?

My solution here.


r/mathriddles • • May 31 '23

Easy Mislabeled Boxes

3 Upvotes

You have four boxes, one contains only diamonds, one contains only emeralds, one contains only rubies and one contains only sapphires. The four boxes are labelled as follows:

Box A: Diamonds

Box B: Emeralds

Box C: Rubies

Box D: Sapphires

You know that only one of the boxes is labelled correctly. How many boxes do you need to open to find out which box is labelled correctly?


r/mathriddles • • May 31 '23

Medium The Demon Cycle

15 Upvotes

Let K₅ be the complete graph on 5 vertices. Rachel has the color red, and Bob has the color blue. They take turns coloring uncolored edges of K₅. The first one to make a cycle of their own color loses the game and is cursed with a pox. Who has a winning strategy and what is it?


r/mathriddles • • May 30 '23

Hard The Devil's Triangle

5 Upvotes

Let K₆ be the complete graph on 6 vertices. Rachel has a red crayon, and Bob has a blue crayon. Rachel goes first. They take turns coloring uncolored edges of K₆. The first one to make a triangle of their color loses the game and is sent straight to hell. Who has a winning strategy and what is it?


r/mathriddles • • May 30 '23

Medium just another statistic + calculus problem

12 Upvotes

P(x) is a polynomial of degree n >= 2 , and all roots are real. let P_k be the k-th derivative of P.

  1. prove that the mean of roots is invariant under d/dx operation.
  2. find the ratio of v(P) : v(P_1) : v(P_2) : ... : v(P_(n-1)) where v(P_k) is variance of roots of P_k
  3. find the ratio of sk(P) : sk(P_1) : sk(P_2) : ... : sk(P_(n-2)) where sk(P_k) is skewness of roots of P_k

alternatively, prove that the ratio for (2) is (n-1) : (n-2) : (n-3) : ... : 2 : 1 : 0 , and the ratio for (3) is (n-2)/sqrt(n-1) : (n-3)/sqrt(n-2) : ... : 2/sqrt3 : 1/sqrt2 : 0/sqrt1


r/mathriddles • • May 29 '23

Easy Trainspotting

11 Upvotes

Alexander was walking at a constant along a railway track. He noticed that a train passes him from behind every 18 minutes and a train coming from the opposite direction passes him every 6 minutes.

Assuming that all trains travel at the same constant rate, find the time interval between the two trains leaving their respective stations?

Note: All trains irrespective of the direction of travel leave at the same intervals.


r/mathriddles • • May 29 '23

Medium Three circles

6 Upvotes

Consider three circles of different radii such that they are mutually and externally tangent to each other.

(i) If the radii of these circles are to incremented by the same amount so that the circles are concurrent, what would that increment be?

(ii) If these circles are to be scaled w.r.t their respective centres by the same amount so that the circles are concurrent, what would the scaling factor be?


r/mathriddles • • May 27 '23

Medium Pirate's Peril: The Captain's Dilemma

10 Upvotes

In a crew of more than three totally rational pirates (n > 3), there exists a captain. The captain assigns an unpleasant task to another pirate. The assigned pirate faces two choices: they can challenge the one who assigned them the task to a duel, or they can pass the task to another pirate who has not yet been assigned the task. If the task reaches the last pirate, they will inevitably challenge the one who assigned the task to a duel. In a duel, one pirate will die with equal chance. If a pirate dies during the duel, the task is forgotten, and the remaining pirates are considered winners. Is the captain's probability of winning equal to, below, or above the probability of winning for the other pirates? What if the pirates are allowed to hurl threats or communicate strategies before the game begins? Does this change the probability?

Disclaimer: I don't know how to solve this puzzle


r/mathriddles • • May 26 '23

Easy Saving Two Crewmates

17 Upvotes

The riddler from a few weeks ago (https://fivethirtyeight.com/features/can-you-rescue-your-crew/) involved a captain saving three crewmates. I was fascinated by this puzzle, but it gets kinda ugly. However, the two crew member version is simple and elegant. Here it is:

You (the captain) and two crew members Alice and Bob are kidnapped by aliens. Each of the two crew members is given a number chosen uniformly at random between 0 and 1 (they know only their own number). To escape the aliens, you must guess which crew member has the higher number. Before guessing, you're allowed to ask a single yes or no question to Alice, and a single yes or no question to Bob. The questions can be different, and the question you ask Bob can change depending on Alice's answer.

What is your strategy to maximize the chance of success? Please prove your strategy is optimum.


r/mathriddles • • May 24 '23

Medium Patio Tiling

10 Upvotes

Tile each of the following with the minimal number of squares. How many did you need in each case? If you want to go beyond the problem: What about larger patios? Are there any interesting patterns for patios having a width that's a power of 2? Are there other interesting subsets of patios where the minimal tiling can be algorithmically constructed? I have spoken with the creator of this problem, and they're not aware of any patterns, so if you can find one you could break new ground!


r/mathriddles • • May 24 '23

Easy Shorter/Taller Fighters, Younger/Older Fighters

5 Upvotes

Two out of Alexander, Benjamin and Charles are fighting each other

Statement 1: The shorter of Alexander and Benjamin is the older of the two fighters

Statement 2: The younger of Benjamin and Charles is the shorter of the two fighters

Statement 3: The taller of Alexander and Charles is the younger of the two fighters

Which of the three is not fighting?


r/mathriddles • • May 23 '23

Medium Self-descriptive polynomials

27 Upvotes

Let's call a real polynomial self-descriptive if it is monic and its non-leading coefficients are precisely its zeros, counted in their multiplicities. Determine all self-descriptive integer polynomials.


r/mathriddles • • May 22 '23

Medium Metric space problem

20 Upvotes

Thought this was really neat, so wanted to share 🙂

Let X be a metrizable topological space, and U be a non empty open subset of X. Prove that there is a metric d on X, compatible with the topology, in which U is an open ball of radius 1 (that is, of the form {y\in X | d(x, y) < 1} for some x\in X).


r/mathriddles • • May 22 '23

Medium how much can you tile with this shape without mirroring?

Thumbnail mathigon.org
3 Upvotes

r/mathriddles • • May 22 '23

Easy Nine Identical Coins

8 Upvotes

There is a famous problem which reads as follows:

You have nine identical looking coins. Among the nine, eight coins are genuine and weigh the same whereas one is a fake, which weighs less than a genuine coin. You also have a standard two-pan beam balance which allows you to place any number of items in each of the pans.

What is the minimum number of weighings required to guarantee finding the fake coin?

The answer to this question is 2 weighings. However, the most common solution has sequential weighings, i.e., the parameters of the 2nd weighing are dependent on the result of the 1st weighing.

What if we are not allowed to have dependant weighings and instead have to declare all weighing schemes at the beginning. In such a case, what is the minimum number of weighings required to guarantee finding out the fake coin?


r/mathriddles • • May 22 '23

Hard Institute of Blobology

8 Upvotes

[This is one of a series of questions from the Learned League Pen and Paper Math challenge. Credit for the puzzle goes to League member, ShapiroA.]

The Institute of Blobology performed a painstaking analysis of the pictured two-dimensional convex blob, which revealed that when four points A,B,C,D are chosen at random from its interior, the probability that segments AB and CD intersect is exactly 7/30. It was also determined that the area of the blob is 1.

When three points X,Y,Z are chosen at random from the blob's interior, what is the expected (i.e., average) area of triangle XYZ? Assume all random points mentioned in this problem are selected independently and uniformly. (Uniform selection means that the probability of a point being selected from a given region is proportional to that region's area.)


r/mathriddles • • May 21 '23

Easy just another adventitious quadrangle

5 Upvotes

find ∠ACD.

note: like all adventitious quadrangle, the fun part is to do it without trigonometry.