Math Challenge!

chuckywang

Lifer
Jan 12, 2004
20,133
1
0
Two numbers x and y are chosen randomly between 0 and 1. What is the probability that the closest integer to x/y is even?

(From Putnam)


EDIT: 0 is definitely even. Also, please please understand the question before trying to solve it.

FURTHER EDIT: Answer coming tomorrow. For now, here's a hint:

Consider the x-y plane. The square where 0<=x<=1 and 0<=y<=1 is the set of all such points (x,y) that can be chosen. Shade in all points (x,y) such that x/y rounded to the nearest integer is even. Consider the area of this shaded region.

ANSWER: 5/4 - pi/4, Scroll down for solution.
 

amol

Lifer
Jul 8, 2001
11,680
3
81
haha, i said 0%, but i also forgot that the integers it can be close to are not closed to the set of {0, 1}
 

mugs

Lifer
Apr 29, 2003
48,920
46
91
I'm going with 25%

Originally posted by: silverpig
First of all, x must be greater than y to even be considered.

Why do you say that?

If x < y, the result is between 0 and 1. So the closest integer would be either 0 or 1. IIRC, 0 is neither even nor odd (I could be wrong), and 1 is most definitely odd. Since in half of all cases x < y, that means you can count 50% out.

Of the remaining 50%, I'm going to assume that half would be closer to an even number and half would be closer to an odd number, therefore 50% * 50% = 25% are closest to an even number.

Edit: My bad, I was thinking of prime numbers. 0 is not prime. It is even. I change my answer to 50%. But that just seems to easy.
 

Howard

Lifer
Oct 14, 1999
47,982
11
81
Originally posted by: silverpig
First of all, x must be greater than y to even be considered.
I'm wondering if he's counting 0 as an integer (and even, at that).
 

her209

No Lifer
Oct 11, 2000
56,336
11
0
Assume a, b, c, d:

x = a/b where a < b
y = c/d where c < d

x/y = (a/b)/(c/d) = ad/bc

 

dionx

Diamond Member
Mar 11, 2001
3,500
1
81
i know 0 is an integer. i just forgot whether its considered even or not
 

silverpig

Lifer
Jul 29, 2001
27,703
12
81
Originally posted by: mugs
I'm going with 25%

Originally posted by: silverpig
First of all, x must be greater than y to even be considered.

Why do you say that?

If x < y, the result is between 0 and 1. So the closest integer would be either 0 or 1. IIRC, 0 is neither even nor odd (I could be wrong), and 1 is most definitely odd. Since in half of all cases x < y, that means you can count 50% out.

Of the remaining 50%, I'm going to assume that half would be closer to an even number and half would be closer to an odd number, therefore 50% * 50% = 25% are closest to an even number.

That's my point exactly. If x < y, then it's not going to be even.
 

blahblah99

Platinum Member
Oct 10, 2000
2,689
0
0
Originally posted by: chuckywang
Two numbers x and y are chosen randomly between 0 and 1. What is the probability that the closest integer to x/y is even?

(From Putnam)

The answer is zero, because there is an infinite number of "numbers" between 0 and 1.
 

silverpig

Lifer
Jul 29, 2001
27,703
12
81
Originally posted by: her209
Assume a, b, c, d:

x = a/b where a < b
y = c/d where c < d

x/y = (a/b)/(c/d) = ad/bc

x and y don't have to be rational though...
 

Zanix

Diamond Member
Feb 11, 2003
5,568
12
81
Originally posted by: blahblah99
Originally posted by: chuckywang
Two numbers x and y are chosen randomly between 0 and 1. What is the probability that the closest integer to x/y is even?

(From Putnam)

The answer is zero, because there is an infinite number of "numbers" between 0 and 1.


Edit: Idiot..
 

mugs

Lifer
Apr 29, 2003
48,920
46
91
Originally posted by: TuxDave
So we have a consensus that 0 does not count as an even number?

I don't think so, I googled it and came up with a lot of sources saying it was even (because 2*0 = 0)
 

TuxDave

Lifer
Oct 8, 2002
10,571
3
71
If the solution requires integrals, then I'm on the right track... if not, please stop me.