Unequally Floored Probability

If x x is chosen uniformly at random on the interval ( 0 , 1 ] , (0,1], then what is the probability that x + 1 x 3 ? \left\lfloor \frac{\lfloor x\rfloor+1}{x} \right\rfloor \leq 3?

Notation: \lfloor \cdot \rfloor denotes the floor function .

1 4 \cfrac{1}{4} 1 3 \cfrac{1}{3} 2 3 \cfrac{2}{3} 3 4 \cfrac{3}{4}

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

4 solutions

Donglin Loo
Sep 26, 2018

Since x ( 0 , 1 ] x\in(0,1] ,

x = 0 \lfloor x\rfloor=0

x + 1 x = 1 x 3 \lfloor \cfrac{\lfloor x\rfloor+1}{x}\rfloor=\lfloor \cfrac{1}{x}\rfloor\leq3

x > 0 x>0

1 x > 0 \cfrac{1}{x}>0

By definition of floor function,

1 x 1 x < 1 x + 1 3 + 1 = 4 \lfloor \cfrac{1}{x} \rfloor \leq \cfrac{1}{x}< \lfloor \cfrac{1}{x} \rfloor +1\leq 3+1=4

1 x < 4 \therefore \cfrac{1}{x}<4

x > 1 4 x>\cfrac{1}{4}

x ( 1 4 , 1 ) x\in(\cfrac{1}{4},1)

The required probability = 1 1 4 = 3 4 =1-\cfrac{1}{4}=\cfrac{3}{4}

Where did the 4 come from?

Blan Morrison - 2 years, 8 months ago

Log in to reply

x > 0 x>0

1 x > 0 \cfrac{1}{x}>0

By definition of floor function,

1 x 1 x < 1 x + 1 3 + 1 = 4 \lfloor \cfrac{1}{x} \rfloor \leq \cfrac{1}{x}< \lfloor \cfrac{1}{x} \rfloor +1\leq 3+1=4

1 x < 4 \therefore \cfrac{1}{x}<4

donglin loo - 2 years, 8 months ago

Log in to reply

I did not realize the entire function was a floor function.

Kyle Covington - 2 years, 7 months ago

We get the 4 because it says less than or equal to 3, and since we're dealing with the floor function, that's the same as saying less than 4.

Brandon Parker - 2 years, 8 months ago

This is the easiest problem from the advanced section I had ever seen

Yinchen Wu - 2 years, 8 months ago

Log in to reply

Ok, and...

Blan Morrison - 2 years, 8 months ago

Maybe because many people answer it too fast (like I did) and choose 2 3 \frac {2}{3} instead of the correct one.

Robert Szafarczyk - 2 years, 8 months ago

Log in to reply

I was about to answer 1 3 \frac{1}{3} because I had misread as 3 \ge 3 then I quickly said "nope" and switched to 2 3 \frac{2}{3} as well. D'oh!

Jeremy Galvagni - 2 years, 8 months ago

Log in to reply

@Jeremy Galvagni I did the very same thing :)

Robert Szafarczyk - 2 years, 8 months ago

Seems a slightly weird question. Why is the interval (0,1] instead of (0,1), and why is there a floor of x? Note that the solution has a few slight errors: Floor(x) = 1 is possible, as x=1 is valid. This leads to the satisfying x's being in the interval (0.25,1] instead.

All in all the question would have been a nice intermediate problem, but should really be reposed as just floor(1/x) <= 3 for x in (0,1)

Alex Burgess - 2 years, 8 months ago

Log in to reply

The denominator x x doesn't allow the value 0 0 .Regardless, the probability is the same, because a point is negligible on a line.

donglin loo - 2 years, 8 months ago

Log in to reply

Yes... that wasn't really what I meant. It would look neater as a question if it was (0,1) instead of (0,1], and if there was no floor(x).

Alex Burgess - 2 years, 8 months ago

Log in to reply

@Alex Burgess It was to confuse you.

Vilim Lendvaj - 2 years, 8 months ago

Surely x in the range 0 25-0.333 leads to values greater than 3?

Andrew Normand - 2 years, 8 months ago

Log in to reply

The outer floor function then rounds it down to 3.

Levent B - 2 years, 8 months ago

Log in to reply

Oh yeah, missed the or equal to...

Andrew Normand - 2 years, 8 months ago

Doesn't (0.25,0.33) leads to exact 3 which validates the function in tern the probability should be 2/3 ?

sujay m - 2 years, 8 months ago

Log in to reply

Yes? f( (1/4,1/3] ) = 3, f ( (1/3,1/2] ) = 2, f ( (1/2, 1) ) = 1. And f(1) = 2.

So f( (1/4,1] ) <= 3, hence probability is 3/4.

Alex Burgess - 2 years, 8 months ago

[x] can also be 1 at x = 1 and so LHS=2≤3 which satisfies hence x belongs to (1/4,1] and not (1/4,1) although probability remains same but it would be more accurate to write it this way

Hunt Ethan - 1 year, 4 months ago
Mike Forgette
Oct 12, 2018
  • First I tried substituting in x = 1 x=1 to the inequality, and x = 1 x=1 makes the statement true since 2 3 2\leq3 .
  • If x + 1 x 3 \left \lfloor \frac{\left \lfloor x \right \rfloor+1}{x} \right \rfloor\leq 3 then x + 1 x < 4. \frac{\left \lfloor x \right \rfloor+1}{x} < 4.
  • Multiplying both sides by x x yields x + 1 < 4 x \left \lfloor x \right \rfloor+1< 4x .
  • Lastly, adding 1 to both sides yields x < 4 x 1 \left \lfloor x \right \rfloor< 4x-1 .
  • If 0 < x < 1 0< x< 1 , then x = 0 \left \lfloor x \right \rfloor=0 and x > 1 4 x> \frac{1}{4} .
  • On the interval ( 0 , 1 ] (0,1] , x x is allowed to be ( 1 4 , 1 ] (\frac{1}{4},1] . The solutions for x x make up 3 4 \frac{3}{4} of the given interval.
Brandon Parker
Oct 11, 2018

The fact that x is distributed uniformly, and the fact that the floor function returns an integer, both make this problem relatively simple. Note that because x is continuously distributed,
P( floor(x) = 0 ) = 1.
This simplifies the function -- let's call it f(x):
f(x) = floor(1/x)
where x ~ U(0,1).
Now we solve for the probability:
P ( f(x) <= 3 )
= P ( f(x) < 4 )
= P ( x >= 1/4)
= 3/4



Similar to how I solved it. Rather simple though, in fact it's possible to solve it in your head, no need to write. I wonder why it's "advanced"...

Tomaž Cedilnik - 2 years, 7 months ago
Abraham Zhang
Oct 13, 2018

We are choosing x x from ( 0 , 1 ] (0,1] .
x = 0 ( since we can ignore x = 1 ) x + 1 x = 1 x 3 1 x < 4 x ( 1 4 , 1 ) \begin{aligned} \lfloor x \rfloor &= 0 \quad (\text{since we can ignore } x=1) \\ \left \lfloor \frac {\lfloor x \rfloor+1} x \right\rfloor = \left \lfloor \frac 1 x \right\rfloor &\le 3 \\ \frac1x &< 4 \\ x&\in \left(\frac14, 1\right) \end{aligned}
Therefore the probability is 3 4 \frac34 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...