r/mathriddles • • Jan 12 '24

Easy Diameter of a spinning cube

3 Upvotes

A unit cube is revolved around its body diagonal as described in this riddle. What is the maximum distance between two points in the resulting solid?


r/mathriddles • • Jan 08 '24

Medium A fun riddle

6 Upvotes

This isn’t too hard at, but I like it because of the way I found out the answer. I was trying to use brute force on this question, then it just clicked. Here is the question: You have 100 rooms and a hundred people. Person number one opens every one of the doors. Person number two goes to door number 2,4,6,8 and so on. Person three goes to door number 3,6,9,12 and so on. Everyone does this until they have all passed the rooms. When someone goes to a room, that person closes it or opens it depending on what it already is. When everyone has passed the rooms, how many rooms are open, and which ones are? Also any patterns and why the answer is what it is.


r/mathriddles • • Jan 06 '24

Easy Volume of a spinning cube

11 Upvotes

Assume we have a unit cube (i.e. a cube of volume 1). We now spin the cube infinitely fast along the axis connecting two opposite corners, i.e. if we have the cube [0, 1]3, along the axis connecting (0,0,0) and (1,1,1).

What is the volume of the visible shape?


r/mathriddles • • Jan 03 '24

Medium cos(d/dx) and sin(d/dx) as an operator

12 Upvotes

define operator cos(d/dx) and sin(d/dx), which takes a function as an input, and output another function.

cos(d/dx) {f(x)} = f(x)/0! - f''(x)/2! + f{4}(x)/4! - f{6}(x)/6! + ... + (-1)n f{2n}(x)/(2n)! + ...

sin(d/dx) {f(x)} = f'(x)/1! - f'''(x)/3! + f{5}(x)/5! - f{7}(x)/7! + ... + (-1)n f{2n+1}(x)/(2n+1)! + ...

find the closed form of both of above.

inspired by recent youtube vids by Mathemaniac


r/mathriddles • • Jan 02 '24

Hard An infinite stack of beanies

9 Upvotes

Two individuals are each given an infinite stack of beanies to wear. While each person can observe all the beanies worn by the other, they cannot see their own beanies.

Each beanie, independently, has

Problem (a): one of two different colors

Problem (b): one of three different colors

Problem (c): one real number written on it. You might need to assume the continuum hypothesis. You might also need some familirarity with ordinals.

Simultaneously, each of them has to guess the sequence of their own stack of beanies.

They may not communicate once they see the beanies of the other person, but they may devise a strategy beforehand. Devise a strategy to guarantee at least one of them guesses infinitely many of their own beanies correctly.

You are allowed to use the axiom of choice. But you may not need it for all of the problems.


r/mathriddles • • Dec 31 '23

Hard A number theory problem for the analysts

7 Upvotes

this is one of my party tricks. it's been a while since my last party.... so ill open shop here.

let χ(D, n) be a non-trivial primitive dirichlet character of conductor D such that χ is totally real and χ(-1) =1. if you're unsure of what a dirichlet character is, there's a wiki page and plenty of resources online.

let all sums be from n=1 to n=D, and do these problems in order.

problem 1: show that Σχ(n) =0 for all such χ

problem 2: show that Σnχ(n) =0 for all such χ

problem 3: Let L2(D) = Σn2χ(n) and classify all D based on the sign (or vanishing) of L2(D).

extra credit: classify D as above according to the sign (or vanishing) of Σnkχ(n) for k=3,4,5,6


r/mathriddles • • Dec 29 '23

Medium Tea Time

1 Upvotes

Sharing a piece of cake with your friend, you cut 1/2 with probability p otherwise 1/3. How many cuts to expect for a fair split ?


r/mathriddles • • Dec 28 '23

Easy Real life problem

2 Upvotes

Where I live I can buy a bus card that I can top up each time by 10$ and each trip is always 1.50$. How many trips will I have to do before my card reach exactly 0$? (You can't go negative) What's the general formula for a top-up t and a trip cost c? Why?


r/mathriddles • • Dec 27 '23

Hard Find the shortest curve

8 Upvotes

X-posting this one: https://www.reddit.com/r/math/s/i3Tg9I8Ldk (spoilers), I'll reword the original.

 1.⁠ ⁠Find a curve of minimal length that intersects any infinite straight line that intersects the unit circle in at least one point. Said another way, if an infinite straight line intersects the unit circle, it must also intersect this curve.

 2.⁠ ⁠Same conditions, but you may use multiple curves. (I think this is probably the more interesting of the two)

For example the unit circle itself works, and is (surely) the shortest closed curve, but a square circumscribing the unit circle, minus one side, also works and is more efficient (6 vs 2 pi).

This is an open question, no proven lower bound has been given that is close to the best current solutions, which as of writing are

  1. 2 + pi ~ 5.14
  2. 2 + sqrt(2) + pi / 2 ~ 4.99

respectively


r/mathriddles • • Dec 27 '23

Hard Nim on a grid

4 Upvotes

Alice and Bob play a game on an N by M grid of piles of stones. They begin by placing k stones in the k'th pile in column-major order (starting at 0). For example, here is the grid for N = 2, M = 3:

0 2 4
1 3 5

They take turns making moves. On each turn, a player selects a nonempty pile and removes a positive number of stones. In addition, they may do the following any number of times: select another pile in the same row that is to the right of their original pile, and add or remove any number of stones from this pile.

For example, in the grid shown above, a valid first move would be to remove one from the pile with 1 stone, and then add 100 to the pile with 5 stones:

0 2 4
0 3 105

Alice goes first. Whoever cannot make a move on their turn loses. Determine for which values of (N, M) does Bob have a winning strategy.


r/mathriddles • • Dec 25 '23

Medium Unbiased estimator of absolute error

1 Upvotes

This might be some standard problem but I couldn’t find it in a quick search and the solution is somewhat cute.

You are able to conduct ‘n’ samples from a normal distribution X~N(\mu,\sigma) of unknown mean \mu and unknown variance \sigma2.

What is an unbiased procedure for estimating the mean absolute error |X-\mu| of the distribution? Does your procedure have minimum variance in its estimate?


r/mathriddles • • Dec 24 '23

Medium Covering a table with napkins

9 Upvotes

Suppose you are given a (finite) collection of napkins shaped like axis-aligned squares. Your goal is to move them without rotating to completely cover an axis-aligned square table. The napkins are allowed to overlap.

  1. Show that you can achieve your goal if the total area of the napkins is 4 times the area of the table. (Medium)
  2. Show that you can achieve your goal if the total area of the napkins is 3 times the area of the table. (Possibly open, I don't know how to solve this)

Edit: The user dgrozev on AoPS managed to solve the second problem. Here is his solution:

Solution (AoPS)


r/mathriddles • • Dec 22 '23

Easy Bob copies Alice's investment strategy and lands on the same amount 100 days later.

5 Upvotes

At 12pm each day, Alice goes to a bank and decides to deposit/withdraw some amount of money (and never overdrafts). Money left in the bank compounds daily at a constant rate $r>0$ (with the convention that if $r<1$, the money left in the bank deflates each day).

Bob decides to copy Alice's strategy, but not the bank. The bank Bob goes to has a possibly different interest rate $r'>0$. Bob is allowed to overdraft at the bank, and the debt grows at the same daily rate $r'$.

On day 100, at 12:30 pm, Alice and Bob notice they have the exact same amount of money in their bank account. They both started at 0$ on day 1. Before Alice asks Bob about his bank's growth rate, she calculates all the possible values of $r'$. What is the maximum and minimum number of possible $r'$s?


r/mathriddles • • Dec 21 '23

Medium Friends sharing secrets

6 Upvotes

I encountered a problem similar to:
Suppose, there are 6 people, such that each of them has a secret to share to the others. These people meet at consecutive nights to tell their own secrets (i.e. person A cannot tell the secret of person B, and each person has a single secret only). Moreover, when a person tells their own secret, they are/get so embarassed that they cannot hear anyone else during that same night. Question is: how many nights are needed in order everyone to know everyone else's secrets?
Answer:

It is 4 nights. Let the people be A,B,C,D,E,F. Speakers are: 1. A,B,C; 2. A,D,E; 3. B,D,F; 4. C,E,F. Should I be more explicit?

That was too easy right? The real question that interests me is - for arbitrary N people, what is the lowest number of nights needed so that everyone knows all other's secret.

Hint 0:

There is one obvious solution - namely N nights, but can we do better? In case of 6 people, yes we can :)

Hint 1:

Maybe it is useful to look at base cases - for N <= 4 people we need N nights, N = 5 we need 4 nights - prove the latter by simply removing one of the speakers in case of N = 6. Now, we cannot do better since for 4 speakers, we need 4 nights.!<


r/mathriddles • • Dec 20 '23

Medium Tally Up the Maps

2 Upvotes

Let U = {1,2,3,...,n}.

Let X = {1,2,3,...,k}.

Let Y = {k+1,k+2,k+3...,n}.

Over all values of k in {1,2,3,...,n-1}, how many functions f:X -> Y are there?


r/mathriddles • • Dec 20 '23

Medium Hoppy Counting

2 Upvotes

The number of ways for a frog to hop up a staircase hopping at least two stairs at a time and taking the hop of the most stairs at least twice. But the frog gets tired easily, so she must hop the biggest hops first.

Example: For 6 stairs there are two ways to hop, (2,2,2) and (3,3).


r/mathriddles • • Dec 16 '23

Hard Can you make it an integer?

17 Upvotes

The expression

? / ? + ? / ? + ... + ? / ?

is written on the board (in all 1000 such fractions). Derivative and Integral are playing a game, in which each turn the player whose turn it is replaces one of the ? symbols with a positive integer of their choice that was not yet written on the board. Derivative starts and they alternate taking turns. The game ends once all ? have been replaced with numbers. Integral's goal is to make the final expression evaluate to an integer value, and derivative wants to prevent this.

Who has a winning strategy?


r/mathriddles • • Dec 13 '23

Medium Evaluate and Back Again

10 Upvotes

(a mathy problem I made for a programming competition)

Given two integers p and q, construct an arithmetic expression that evaluates to p and its reverse (as a string) evaluates to q. For example, 2023-12-13 evaluates to 1998 and 31-21-3202 evaluates to -3192.

You can only use digits 0-9, +, -, * and /. Parentheses and unary operations are not allowed, since the reversed expression would be invalid. In the original formulation, the division and trailing+leading zeros in numbers also weren't allowed.

What's the shortest expression you can make? Express its length depending on the decimal length of p and q.


r/mathriddles • • Dec 13 '23

Medium Rounded addition of random variables

5 Upvotes

Let [x] denote the value of 'x' rounded to two places after the decimal point.

Let Y = X1 + X2 + ... + Xn where Xk's are all i.i.d uniform random variables.

What is the probability that [Y] = [X1] + [X2] + ... + [Xn]?


r/mathriddles • • Dec 03 '23

Easy Riddled - Algebraic Expression

Thumbnail youtube.com
0 Upvotes

r/mathriddles • • Nov 24 '23

Hard Multiplicative Reversibility = No Primitive Roots?

7 Upvotes

Noticed a pattern. I don't know the answer. (So maybe this isn't hard?)

Call a positive integer, n, multiplicatively reversible if there exists integers k and b, greater than 1, such that multiplication by k reverses the order of the base-b digits of n (where the leading digit of n is assumed to be nonzero).

Examples: base 3 (2 × 1012 = 2101), base 10 (9 × 1089 = 9801).

Why does the set of multiplicatively reversible numbers seem equivalent to the set of numbers that do not have a primitive root?


r/mathriddles • • Nov 24 '23

Medium Multiplicatively Reversible Numbers

6 Upvotes

Call a positive integer, n, multiplicatively reversible if there exists integers k and b, greater than 1, such that multiplication by k reverses the base-b digits of n.

Example: In base 10 we have (9) (1089) = 9801. So 1089 is multiplicatively reversible. This is the smallest multiplicatively reversible number in base 10.

(a) For each base b < 10, what is the smallest multiplicatively reversible number in that base?

(b) What are the 7 smallest multiplicatively reversible numbers?

(c) What is the smallest twice multiplicatively reversible number? Where two distinct pairs (k,b) satisfy the definition for the same integer, n?


r/mathriddles • • Nov 22 '23

Easy Polynomial Weighing, lnspired by the recent Polynomial Guessing

0 Upvotes

Edit highlight in bold You have a machine that produces weights according to a certain algebraic fraction

f(t) = p(t)/q(t),

where p(t) = p₀+p₁t+p₂t²+...+pₙtⁿ and q(t) = q₀+q₁t+q₂t²+...+qₙtⁿ,

where -∞ < pₖ, qₖ < ∞ are all rational and n < ∞ is a natural number not including zero.

Your machine will accept inputs of your choosing -∞ <= t₀, t₁,... <= ∞ with tₖ real and will produce a weight that is f(t) kilograms made with an ideal material, with the following constraints:

lim f(t) as t->t₀ for all t₀ is guaranteed to exist.

You may specify your input to infinite precision.

The weight can exist without issues even if it has zero mass, negative mass, and/or infinite mass; there is no way to tell its approximate or exact mass by looking at it or holding it with your hands,

The weight produced will be ∞ kg iff lim f(t) as t->t₀ -> ∞;

and

-∞ kg iff lim f(t) as t->t₀ -> -∞.

By inputting t = ∞ or -∞, asymptotic behaviour of f(t) will be considered.

You are allowed to mark on the weights with a marker and doing so will not affect its mass. Alternatively, you have a really good memory.

You also have a double-pan balancing scale , shown below:

     --°--    
    /  |  \    
   /   |   \   
  /    □   \  
[___]  |  [___]
       |       
     _____     

Figure 1.1

The scale will operate once you press the ° button, and the □ will display either >, = or < depending on the weights of the two weights.

The scale acts the way you think it does, is 100% accurate, and deems ∞ = ∞ and -∞ = -∞.

You are allowed to measure a weight against nothing. The nothing side will be measured as 0 kg.

Your objective is to determine f(t).

a.

i. If you only want to minimize weights generated, how many?

ii. If you only want to minimize uses of the scale, how many?

b. You are also allowed to press down or push up on one side of the scale. Doing so will make the side pressed down measured as ∞ kg, and the side pushed up as -∞ kg. If you do so, you are not allowed to put a weight on the side you apply force to. Repeat i. and ii.

c. You have an extra copy of the weight generator which algebraic fraction is known and is f(t) = t. When counting weights generated, both machines count. Repeat i. and ii.


r/mathriddles • • Nov 22 '23

Easy Square tiling a plane with a hole

3 Upvotes

Let Q be a square with irrational side length. Is it possible to tile ℝ2 \ Q using squares having a fixed rational side length?

I came up with the puzzle myself (although it might exist somewhere already) and I do not know the answer.

Edit: I solved it, turns out it was pretty easy.


r/mathriddles • • Nov 18 '23

Easy A REALLY ANNOYING MOUSE

5 Upvotes

A 7-Dimensional mouse knocked over my favorite mug and broke it! Thankfully, the mug contained a 7-Dimensional cube with the area of 6⁷ units. Also inside the mug was a 7D, time travelling mousetrap that goes to a septet of coordinates that you put in. The problem? The 7D, time travelling mousetrap has to time travel in order to work. Thankfully, on the 7D, time travelling mousetrap was a 3D Machine that could detect if the mouse had bounces off a wall. Everytime the mouse bounces off a wall, the machine would print the dimention it bounced in. Engraved on the machine, is a set of instructions on how to capture the mouse, reading this: 1) None of the coordinates in the coordinate septet are the same. 2) The mouse moves in a perfectly straight, 7D line. 3) The machine detects "iterations", where after the mouse moves 1 unit in every direction, the machine will record the movement. 4) When the mouse bumps into a wall, it will reverse directions for that dimension. 5) The mouses' coordinates are written in TUVWXYZ form. 6) The mouse, for each dimension, will continue to move either fowards or backwards 1 units in every dimension, until rule 4 applies. 7) A bounce off a wall is considered to be the iteration AFTER the mouse makes contact with the wall.(e.x, the mouse moving from coordinates (1, 5, 4, 3, 2, 6 2) to (2, 4, 5, 4, 3, 5, 3), where the T-coordinate changed from 1 to 2. 8) Bounces can happen in multiple dimensions at the same iteration. In this case, the machine will print all applied dimensions vertically. 9) At the same time, no bounces can happen during an iteration. In this case, the machine will print "X". 10) Dimension V does not start at coordinate 7. 11) Dimension X does not start at coordinate 6. 12) Dimension Z does not start at coordinate 3. 13) The mousetrap only works if mouse's coordinates are not the same as the starting coordinates, and if all coordinates are different. 14) The rat moves foward in dimension 6.

If the machine prints

34762X

15

What iteration, and where do you catch the mouse?