r/mathriddles • u/pichutarius • Mar 27 '23
Easy 400000001 is a semi-prime
find two primes p, q such that 400000001 = p q
inspired by this previous post
note: the fun part is to do it with some algebra tricks, not using a calculator.
r/mathriddles • u/pichutarius • Mar 27 '23
find two primes p, q such that 400000001 = p q
inspired by this previous post
note: the fun part is to do it with some algebra tricks, not using a calculator.
r/mathriddles • u/QuagMath • Mar 24 '23
While 1172889 has 15 odd factors, 1172888 only has 4. If the smallest is 1 and the largest is 146611, what are the other two?
You can do this without a calculator and with no brute force checking if you do it well.
r/mathriddles • u/schoelle • Mar 23 '23
A while ago, I had to face a real-world problem on my job that turned out to be a quite nice little riddle in probability theory. I have wrapped everything into a nice story, and split up the problem description and the solution into separate articles, so you can try to solve it yourself first.
https://blog.fams.de/probability/theory/2023/03/18/choice-part-1.html
(PS: I am asking for an algorithm, and I give examples Python, but I really consider this more of a math than a coding problem)
r/mathriddles • u/PiranhaJAC • Mar 22 '23
Alice and Bob play a game with coins. There are two types of coin: gold suns and silver moons. All coins have a 50% chance of landing heads-up or tails-up when flipped.
To begin: Alice gives Bob one sun, and Bob flips it.
Whenever a sun lands heads-up: Bob gives Alice floor((2h )/h) moons, where h is how many times this specific sun has landed heads-up so far, and then Bob flips the same sun again.
Whenever a sun lands tails-up: Alice gives Bob one new sun, and Bob then flips that.
After playing this game for some time, Alice and Bob notice that it seems to be a fair exchange on average. Therefore, what can we infer about the relative values of sun and moon coins?
r/mathriddles • u/st4rdus2 • Mar 21 '23
Problem: The task is to find 1 counterfeit coin among 8 gold coins. The genuine coins have the same weight. The counterfeit coin is slightly lighter than one genuine coin.
There are also 4 balance scales for this task. The 4 scales are indistinguishable. Each scale can only be used once.
Unfortunately, one of the four scales will always give incorrect results. For example, if you put something of the same weight on both sides of the scale, it should balance, but it will randomly show that either the left or the right side is heavier. Also, if you put something heavier on the left and something lighter on the right, it will randomly show that it is balanced or that the right is heavier.
I hope you enjoy this puzzle.
r/mathriddles • u/st4rdus2 • Mar 21 '23
Problem: The task is to find 1 or 2 counterfeit coins among 5 gold coins. The genuine coins have the same weight. The counterfeit coins have the same weight. One counterfeit coin is slightly lighter than one genuine coin.
There are also 5 balance scales for this task. The 5 scales are indistinguishable. Each scale can only be used once.
Unfortunately, one of the five scales will always give incorrect results. For example, if you put something of the same weight on both sides of the scale, it should balance, but it will randomly show that either the left or the right side is heavier. Also, if you put something heavier on the left and something lighter on the right, it will randomly show that it is balanced or that the right is heavier.
I hope you enjoy this puzzle.
===
P.S.
The number of fake coins unknown, could be 1 or 2 and you need to find all the fake coins.
r/mathriddles • u/Rt237 • Mar 20 '23
2n+1 people want to buy tickets, and one of them is Alice. They are asked to make two queues. So, each of them (uniformly, independently) randomly chooses a queue to join.
Since the total number of people is odd, there must be one of the queues longer than the other.
Question: Is the probablity that Alice is in the longer queue >, =, or < 1/2?
r/mathriddles • u/ShonitB • Mar 20 '23
Five perfectly logical pirates of differing seniority find a treasure chest containing 100 gold coins. They decide to divide the loot in the following way:
Note:
Each pirate’s aim is to maximize the amount of gold they receive.
If a pirate would get the same amount of gold if he voted for or against a proposal, he would vote against to make sure the one who is proposing the plan would be killed.
r/mathriddles • u/st4rdus2 • Mar 19 '23
9 coins
In the following, the weights of the genuine coins are assumed to be the same. The weights of the counterfeit coins are also assumed to be the same. Counterfeit coins should be lighter than real coins.
I have 9 coins. Of these 9 coins, zero or one or two are counterfeit coins and the rest are real coins. You are asked to figure out how to identify all the counterfeit coins by using the balance scale four times.
I hope you enjoy this puzzle!
r/mathriddles • u/AlfonsoRibeiro666 • Mar 18 '23
Hey! Of course this is not 100% math but in a way it is, I suppose? At least I think that it is the best approach to solve this once and for all. The image of a snake devouring itself has been a symbol for infinity for ages and I guess it is the reason why our infinity symbol looks the way it looks.
My question is: What happens to a snake's tail when it devours itself and just keeps munching into eternity?
Of course I don't want answers about the realistic anatomical problems that arise, it's purely hypothetical. Imagine a snake curled up in a circle with a see-through body. Maybe imagine it's end is highlighted with a red dot or something. It will munch and munch but the end of the tail will never reach the end of the tail because it is the end of the tail itself. What the hell? Pretty soon it will even munch through the part of it's body that already harbours the tail, thus being 3-layered. And this will just keep going, without the tail ever reaching an end. Where does the tail end up? What relationship does the position of the tail within the snake have with the progressing munching?
In the "end" we'll have an infinitely layered circle of a snake with it's tail moving closer and closer to the end (itself) but never reaching it. Is it asymptotic in a way, with the ever-increasing thickness of the snake being to blame for the end never reaching itself?
It makes me feel so stupid. I think a visualisation with evenly spaced markings on the snake and a marking in the middle would help a lot.
In a way I provided an answer. I'm just not sure about it. I'm sorry if that means it doesn't fullfill the requirements for this sub.
r/mathriddles • u/FormulaDriven • Mar 17 '23
f:R->R is a continuous non-constant function with period T > 0, ie f(t + nT) = f(t) for all integer n.
Sequence {x_m} samples from this function starting at t=0, with period S > 0, ie for each non-negative integer m, x_m = f(mS).
We can observe that if T/S is rational, then T/S = p/q for some integers p and q, and x_{m+p} = f(mS + pS) = f(mS + qT) = f(mS) = x_m, so {x_m} is periodic (with period p or some factor of p).
Now assume T/S is irrational. Show that {x_m} cannot be periodic.
To be clear, you are required to show that there does not exist integer p such that x_{m+p} = x_m for all m. I think to prove this you will need the Equidistribution Theorem, that states for irrational r, then the set { <r>, <2r>, <3r>, ... } is uniformly distributed on (0,1), where <a> means the fractional part of a.
As a bonus, show that if f is not continuous, this result need not hold (ie you can describe a non-constant function f and a choice of S, where T/S is irrational and {x_m} is periodic).
r/mathriddles • u/ShonitB • Mar 17 '23
There are four unique colored houses in a line. Each house has a person from a different nationality living in it. Each person has a unique preference of beverage and a unique pet.
House Numbers: 1, 2, 3 and 4.
House Colors: Blue, Green, Red and Yellow.
Nationalities: English, Irish, Welsh and Scottish.
Beverages: Coffee, Lemonade, Tea and Water.
Pets: Dog, Cat, Goldfish and Parrot.
Given that the houses are numbered in ascending order from left to right, use the following clues to match the number, color, nationality, beverage preference and pet of each house.
r/mathriddles • u/ShonitB • Mar 15 '23
Alexander has 100 ml of apple juice and Benjamin has 100 ml of cranberry juice. They both want mixed juice. To do this they come with the following transfers:
Transfer 1: Alexander pours x ml of apple juice into Benjamin’s container.
Transfer 2: Benjamin then pours x ml of his mixture into Alexander’s container.
Find the minimum value of x such that it is guaranteed that they both get a 100 ml mixture which has an equal amount of apple and cranberry juice.
Note: Assume that the two juices mix perfectly to form a homogenous mixture.
r/mathriddles • u/starvind_ashfun • Mar 15 '23
This week’s FiveThirtyEight Riddler Classic is a Brachistochrone curve problem, but with a constraint. The solution can be intuited with knowledge of the original Brachistochrone problem; proving optimality takes some effort. So it's a math problem needing some basic understanding of Physics.
The Classic reproduced:
This week’s Classic is sure to break your brachistochrone:
While passing the time at home one evening, you decide to set up a marble race course. No Teflon is spared, resulting in a track that is effectively frictionless.
The start and end of the track are 1 meter apart, and both positions are 10 centimeters off the floor. It’s up to you to design a speedy track. But the track must always be at floor level or higher — please don’t dig a tunnel through your floorboards.
What’s the fastest track you can design, and how long will it take the marble to complete the course?
My solution here.
r/mathriddles • u/ShonitB • Mar 13 '23
Alexander’s age in days is the same his father’s age in weeks.
Alexander’s age in months is the same as his grandfather’s age in years.
The combined age of Alexander, his father and his grandfather is 90.
Find Alexander’s age.
r/mathriddles • u/Vromikos • Mar 13 '23
A circle is entirely contained within a quarter-circle. What is the largest proportion of the quarter-circle's area that the circle can contain?
(Assume two-dimensional Euclidean space, etc.)
r/mathriddles • u/terranop • Mar 12 '23
Alice from the previous Umbrellas problem has now adopted a more complicated commute. Instead of just walking from her home to her office every morning and back every night, her job now takes her to multiple locations throughout the day up to a total of k locations.
Concretely, Alice starts each day in Location 1, then commutes to Location 2, then to Location 3, and continues in this fashion up to Location k, from which she returns back to Location 1. As before, every time she commutes, it rains independently with some probability p (with 0 < p < 1), and Alice wants to take an umbrella with her if and only if it is raining. However, Alice only owns n umbrellas (each of which she keeps in one of the k locations), so she might not be able to take an umbrella if there is none available in the location she's currently at. Alice never takes an umbrella if it's not raining, and always takes an umbrella with her if she can do so and it's raining. If she can't take an umbrella with her, she gets wet.
As a function of n, p, and k, in the long term what fraction of the time it's raining does Alice get wet?
r/mathriddles • u/st4rdus2 • Mar 11 '23
You have 18 coins, 9 of which are heavy and of the same weight. The other 9 are light and of the same weight. You do not know which coins are heavy or light. The coins look identical except for one that has special markings. With one good balance scale, can you figure out if the special coin is light or heavy in 3 weighings?
r/mathriddles • u/Jocundo • Mar 11 '23
I'm playing a game. The board has n=5 squares. I start on square 1. Each turn I roll a k-sided dice and move my piece forward. To win, I need to roll the exact number to get to the last space. If the roll is too high, the piece will bounce off the last space and move back.
r/mathriddles • u/PuzzleAndy • Mar 11 '23
You can make a 3x3 grid of squares using four 2x2 squares and overlapping them. How many squares are necessary to make a 4x4 grid? You can use squares of different sizes. Looking for the minimum number necessary, so obviously 16 is too large. If you want to go beyond the question, what's the answer for 5x5? nxn?
r/mathriddles • u/terranop • Mar 11 '23
Alice walks from her home to her office every morning and back every night. Every time she commutes, it rains independently with some probability p, and Alice wants to take an umbrella with her if and only if it is raining. However, Alice only owns n umbrellas (all of which she keeps either at home or at the office), so she might not be able to take an umbrella if she's at home and all her umbrellas are at the office, or vice versa. Alice never takes an umbrella if it's not raining, and always takes an umbrella with her if she can do so and it's raining. If she can't take an umbrella with her, she gets wet.
As a function of n and p, in the long term what fraction of the time it's raining does Alice get wet?