CTK Exchange
Front Page
Movie shortcuts
Personal info
Awards
Reciprocal links
Terms of use
Privacy Policy

Interactive Activities

Cut The Knot!
MSET99 Talk
Games & Puzzles
Arithmetic/Algebra
Geometry
Probability
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
My Logo
Math Poll
Other Math sit's
Guest book
News sit's

Recommend this site

Manifesto: what CTK is about |Store| Search CTK Buying a book is a commitment to learning Table of content Things you can find on CTK Chronology of updates Email to Cut The Knot Recommend this page

CTK Exchange

Subject: "Ratio of even and odd numbers"     Previous Topic | Next Topic
Printer-friendly copy     Email this topic to a friend    
Conferences The CTK Exchange College math Topic #443
Reading Topic #443
Rob
guest
Apr-16-04, 07:11 AM (EST)
 
"Ratio of even and odd numbers"
 
   I was given this question for bonus and I'm trying to figure it out.

The natural numbers, N, consist of the set {1,2,3,4....}

Suppose someone has randomly generated two natural numbers and used them to make a fraction. Reduce the fraction to lowest terms. What is the probability that both the numerator and the denominator are odd numbers?


:: I got 25% as the answer. My teacher got 33%.

My proof real quick (5 in the morning).

fraction = n/d

Case1: If both n and d are odd, all the fractions will be odd.
+25%

Case2/3: If one (n or d) is even and the other is odd, they will stay that way no matter what.
11/66 = 1/6 for example
+0%

Case4: If both n and d are even, then they can be broken down into odd numbers times a multiple of 2. ((odd)(2^r))/((odd)(2^s)) where r and s are all positive real numbers. r must equal s for the two numbers to convert down into odd/odd from even/even. If r /= s, then there will be an even number in the greater value (r or s).
For infinite numbers to choose from, the chances of r=s are extremely slim >> even/even coming out odd/odd is basically 0 (limit).

Thus, 25% probability.
+1/infinity% >> 0%

My teacher gave me this.

"You can turn everything into case 4: odd2^r/odd2^s . Then the question is, when does r=s? 1/2 of naturals are odd, half are even. 1/2 of evens are divisible by 4. 1/2 of divisible by 4 are divisible by 8, etc. You eventually get the series from n=0 to infinity of (1/4)^n >=> 1/3 or 33%."

I have no clue where she got this.

Can anybody prove me right/wrong? Thanks


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top

  Subject     Author     Message Date     ID  
Ratio of even and odd numbers Rob Apr-16-04 TOP
  RE: Ratio of even and odd numbers sfwc Apr-16-04 1
     RE: Ratio of even and odd numbers Rob Apr-16-04 3
         RE: Ratio of even and odd numbers sfwc Apr-17-04 5
     RE: Ratio of even and odd numbers Rob Apr-16-04 4
  RE: Ratio of even and odd numbers Rob Apr-16-04 2
     RE: Ratio of even and odd numbers Graham C Apr-17-04 6
         RE: Ratio of even and odd numbers Maxim Apr-18-04 7
             RE: Ratio of even and odd numbers Graham C Apr-19-04 8
                 RE: Ratio of even and odd numbers Rob Apr-19-04 9
                 RE: Ratio of even and odd numbers Maxim Apr-19-04 10
                     RE: Ratio of even and odd numbers Graham C Apr-21-04 11
                         RE: Ratio of even and odd numbers Maxim Apr-21-04 12
  RE: Ratio of even and odd numbers Tony May-30-04 13
     RE: Ratio of even and odd numbers Tony May-30-04 14

Conferences | Forums | Topics | Previous Topic | Next Topic
sfwc
Member since Jun-19-03
Apr-16-04, 01:03 PM (EST)
Click to EMail sfwc Click to send private message to sfwc Click to view user profileClick to add this user to your buddy list  
1. "RE: Ratio of even and odd numbers"
In response to message #0
 
   >Case4: If both n and d are even, then they can be broken
>down into odd numbers times a multiple of 2.
>((odd)(2^r))/((odd)(2^s)) where r and s are all positive
>real numbers. r must equal s for the two numbers to convert
>down into odd/odd from even/even. If r /= s, then there
>will be an even number in the greater value (r or s).
> For infinite numbers to choose from, the chances of r=s
>are extremely slim >> even/even coming out odd/odd is
>basically 0 (limit).

Here is your mistake. It is easy to show that the probability that r=s is not 0. The probability that r=1 is 1/4. The probability that s = 1 is also independantly 1/4. So the probability that r=s=1 is 1/16. It follows that the probability that r=s is at least 1/16 > 0.

I hope that helps

Thankyou

sfwc
<><


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
Rob
guest
Apr-16-04, 10:25 PM (EST)
 
3. "RE: Ratio of even and odd numbers"
In response to message #1
 
   Hmmm, lost me :). How is the probability that r=1 1/4th? Can I not have an almost infinite number that breaks down into something like ((odd)(2^100), making r=100. When I put that over an even like, 2, I get r=100, s=1. Can I not do that for every number between 1 to 99 for s values. Thus, there will be a crapload of evens, and only 1 that converts to odd/odd.

As the evens chosen --> oo , the probability that r=s will become less and less probable.

I'm in Calculus 2, so excuse me if I'm completely wrong. But this is just how my feeble mind sees it :).


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
sfwc
Member since Jun-19-03
Apr-17-04, 06:10 AM (EST)
Click to EMail sfwc Click to send private message to sfwc Click to view user profileClick to add this user to your buddy list  
5. "RE: Ratio of even and odd numbers"
In response to message #3
 
   r = 1 if the first number is even, but not divisible by 4. That is, the first number must be 2 mod four. For example, 2, 6, 10, 14, 18 and so on all have r = 1. Now any number is either 0, 1, 2 or 3 mod 4, and they are achieved with equal probability. Therefore, r = 1 is true of 1/4 of numbers.

Note that this assumes that you are picking the original numbers 'at random'. This is not at all the same as picking r or s at random, which is what you seem to have done. r and s are much more likely to be small numbers than big numbers simply because not many numbers are divisible by large powers of two but loads are odd. For example, the probability that r=100 is absolutely tiny; about 0.0000000000000000000000000000004. So although there are, as you say, a crapload of such numbers, there is a much, much larger crapload of numbers with r < 100.


Thankyou

sfwc
<><


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
Rob
guest
Apr-16-04, 10:25 PM (EST)
 
4. "RE: Ratio of even and odd numbers"
In response to message #1
 
   >> Here is your mistake. It is easy to show that the probability that r=s is not 0. The probability that r=1 is 1/4. The probability that s = 1 is also independantly 1/4. So the probability that r=s=1 is 1/16. It follows that the probability that r=s is at least 1/16 > 0. <<

I didn't mean to come off and say that the possibility of r being equal to s is an absolute 0. I meant that for infinite numbers, the chances are so small, that it is esentially 0.


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
Rob
guest
Apr-16-04, 10:25 PM (EST)
 
2. "RE: Ratio of even and odd numbers"
In response to message #0
 
   I've also talked to several students in much higher math classes that all agree with me. It comes down to the possibilit's of even/even reducing to odd/odd. There are infinite even/even's that reduce to odd/odd, however, the even/even not being odd/odd also goes to infinity, but faster and to a greater extent. This is one of those infinity < infinity situations which I'm nowhere near understanding.

Anyways, I'd just like some confirmations or disputes on my hypothesis. There are a lot of bright minds on this forum that can contribute much more than my friends.


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
Graham C
Member since Feb-5-03
Apr-17-04, 06:10 AM (EST)
Click to EMail Graham%20C Click to send private message to Graham%20C Click to view user profileClick to add this user to your buddy list  
6. "RE: Ratio of even and odd numbers"
In response to message #2
 
   >I've also talked to several students in much higher math
>classes that all agree with me. It comes down to the
>possibilit's of even/even reducing to odd/odd. There are
>infinite even/even's that reduce to odd/odd, however, the
>even/even not being odd/odd also goes to infinity, but
>faster and to a greater extent. This is one of those
>infinity < infinity situations which I'm nowhere near
>understanding.
>
>Anyways, I'd just like some confirmations or disputes on my
>hypothesis. There are a lot of bright minds on this forum
>that can contribute much more than my friends.

Take for the moment just the first 100 natural numbers. 50 are odd (2k+1), and 50 even (2k).

Of those 50, 25 are 2 times an odd number (odd*2^r, r=1)
25 are 2 times an even number (odd*2^r, r>1).

So in 1 in 2 cases r=0 (the number is odd). In 1 in 4 cases, r=1 and in the remaining 1 in 4 r>1. In half of the remainder, the number is 4 times an odd number, so r=2 in 1 case in 8. And so on. The proportion of cases where r=n is 1 in 2^(n+1).

Those proportions remains constant (approximately) no matter how many numbers you take. They apply to both the numerator and the denominator, so that the probability that r=s=1 = 1/4*1/4 = 1/16.
The probability that r=s=2 = 1/8*1/8 = 1/64. So the total probability that r=s is given by the sum of the series
1/16 + 1/64 + 1/256.... or sum(i=1..inf) 1/(4*i)^2 = 1/12.

The probability of odd/odd is therefore 1/4 + 1/12 = 4/12 = 33%

Occasionally teachers are right.

(This is only an expansion of what sfwc wrote but I hope this helps.)

The mistake you make in assuming the probability that r=s tends to zero as n tends to infinity is akin to the mistake of assuming that the proportion of numbers ending in 5 tends to zero. You're effectively trying to get a probability by dividing infinity by infinity, which is undefined, and indeed, forbidden.

A moderately useful but inelegant tip in this sort of situation is to calculate the probability for the first 100 numbers, the first 1000, and so on, and see if it does indeed reduce in the increasing finite cases.


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
Maxim
Member since Feb-17-03
Apr-18-04, 07:10 PM (EST)
Click to EMail Maxim Click to send private message to Maxim Click to view user profileClick to add this user to your buddy list  
7. "RE: Ratio of even and odd numbers"
In response to message #6
 
   One remark though: there doesn't exist a uniform distribution on the set of natural numbers. That is, you can't assign equal probabilities to all naturals. So what is usually done here is to take the set {1,2,...,N} and then to consider the asymptotics as N goes to infinity.

This will give some complications, since, for example, if N is odd then you won't have N/2 even numbers (there will be (N-1)/2 of them). I think the answer 1/3 will still be valid, but you have to carefully prove that those corrections can be neglected for large N.


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
Graham C
Member since Feb-5-03
Apr-19-04, 01:19 PM (EST)
Click to EMail Graham%20C Click to send private message to Graham%20C Click to view user profileClick to add this user to your buddy list  
8. "RE: Ratio of even and odd numbers"
In response to message #7
 
   >One remark though: there doesn't exist a uniform
>distribution on the set of natural numbers. That is, you
>can't assign equal probabilities to all naturals.

That's why I weaselled out with "Those proportions remains constant (approximately) no matter how many numbers you take."

> So what is usually done here is to take the set {1,2,...,N} and
> then to consider the asymptotics as N goes to infinity.
>
>This will give some complications, since, for example, if N
>is odd then you won't have N/2 even numbers (there will be
>(N-1)/2 of them).

And the proportion of odds (r=0 as earlier) after N numbers will be (N-1)/2N. In the limit that looks pretty much like 1/2. It's more complicated for r>0, but for r=1 the relevant expressions are (writing n as 4k + x, x=0..3) k/(4k+x), which again is 1/4 in the limit.

In fact, the general expression for r, writing n as 2^(r+1)*k + x, x=0..2^(r+1)-1, is
k/(2^(r+1)*k+x)
which always has limit 1/2^(r+1).

> I think the answer 1/3 will still be
>valid, but you have to carefully prove that those
>corrections can be neglected for large N.


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
Rob
guest
Apr-19-04, 10:02 PM (EST)
 
9. "RE: Ratio of even and odd numbers"
In response to message #8
 
   Eh, makes sense I guess. What she put didn't help me a damn bit.

Thanks guys!


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
Maxim
Member since Feb-17-03
Apr-19-04, 10:02 PM (EST)
Click to EMail Maxim Click to send private message to Maxim Click to view user profileClick to add this user to your buddy list  
10. "RE: Ratio of even and odd numbers"
In response to message #8
 
   A little more knitpicking: let p_r(N) be the probability of getting (2*k+1)*2^r/((2*n+1)*2^r) when we consider first N natural numbers. What we want is

P=limit(Sum(p_r(N),r=0..infinity),N->infinity).

The catch is that we have to prove that limit and Sum can be swapped to pass to

P=Sum(1/2^(2*r+2),r=0..infinity).


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
Graham C
Member since Feb-5-03
Apr-21-04, 08:15 AM (EST)
Click to EMail Graham%20C Click to send private message to Graham%20C Click to view user profileClick to add this user to your buddy list  
11. "RE: Ratio of even and odd numbers"
In response to message #10
 
   >A little more knitpicking: let p_r(N) be the probability of
>getting (2*k+1)*2^r/((2*n+1)*2^r) when we consider first N
>natural numbers. What we want is
>
>P=limit(Sum(p_r(N),r=0..infinity),N->infinity).

I don't follow that at all. What we're looking for is (2*k+1)*2^r/N for FIXED r as N --> infinity and 0<=2*k+1<=N/2*r.

You can if you like rewrite that as (2*k+1)*2^r/(2*j+1)*2^s, but ir's wrong to have the same power of 2 in the denominator as in the numerator. And it's unnecessarily confusing to have n and N representing two different values.

Sum that over r and you get 1. (Or you better had.)
>
>The catch is that we have to prove that limit and Sum can be
>swapped to pass to
>
>P=Sum(1/2^(2*r+2),r=0..infinity).


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
Maxim
Member since Feb-17-03
Apr-21-04, 09:44 AM (EST)
Click to EMail Maxim Click to send private message to Maxim Click to view user profileClick to add this user to your buddy list  
12. "RE: Ratio of even and odd numbers"
In response to message #11
 
   Let's get our notation straight: we have the set {1,2,...,N} (I use big N). First we want to count the number of elements of the set which are divisible by 2^r but not by 2^(r+1). For N=2^(r+1)*k+x you give this number as k (so the ratio is k/N). This is not quite true; take r=0 (so we count the odd numbers) and N=2*k+1: in fact we have k+1 of odd numbers, not k. But in any case we get a ratio close to 1/2^(r+1).

Now, to get an irreducible fraction of the form (2*i+1)/(2*j+1) we have to start with (2*i+1)*2^r/((2*j+1)*2^r), for which we should pick two numbers divisible by 2^r but not by 2^(r+1). I denoted the probability of this event by p_r(N) -- it depends both on r and on N. For this we just have to square the ratio found above, so we get a value -- again, vaguely speaking -- close to (1/2^(r+1))^2. So the answer to the original problem (probability that we get an irreducible fraction odd/odd) is

P(N)=Sum(p_r(N),r=0..infinity).

All the terms starting from some r0 are zero, but r0 depends on N. Now we want to find the limit(P(N), N->infinity). If we can change the order of sum and limit operations, we get what we want:

limit(p_r(N),N->infinity)=1/2^(2*r+2),

sum(1/2^(2*r+2),r=0..infinity)=1/3.

But we gotta have uniform convergence for that.


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
Tony
guest
May-30-04, 02:05 PM (EST)
 
13. "RE: Ratio of even and odd numbers"
In response to message #0
 
   I believe your teacher's hint is correct although her reasoning is suspect. Here's how I see it. Everything can indeed be reduced to the case odd2^r/odd2^s. Now the question becomes when does r=s?

If r=s=0 then we are free to choose any odd number for the numerator and another odd number for the demoninator. This can be done with probability (1/2)(1/2)=1/4.

If r=s=1 then we are free to choose any ODD multiple of 2 for the numerator and another ODD multiple of 2 for the demoninator. The ODD multiples of 2 are:

2, 6, 10, 14, ...

Note that these form an arithmetic progression beginning at 2 with common difference 4. Thus, the ODD multiples of 2 occur with probability 1/4. So, in this case the required probability is (1/4)(1/4)=1/16.

Similarly for r=s=2, we must choose an ODD multiple of 4 for the numerator and another ODD multiple of 4 for the demoninator. The ODD multiples of 4 are:

4, 12, 20, 28, ...

These occur with probability 1/8. So in this case the required probability is
(1/8)(1/8)=1/64.

Continuing and summing the probabilities for all the separate cases yields

1/4 + 1/16 + 1/64 + 1/256 + ... = 1/3.

Hope this was helpful.

Tony

Comment: This question can be made more precise by using Measure Theory.


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
Tony
guest
May-30-04, 06:48 AM (EST)
 
14. "RE: Ratio of even and odd numbers"
In response to message #13
 
   To justify that the ODD multiples of 2 occur with probability 1/4 just observe that if you partition the natural numbers into sets of 4 consecutive numbers:

{1,2,3,4}, {5,6,7,8}, {9,10,11,12}, ...

then each ODD multiple of 2 occurs in exactly one set of the partition.

Similarly the ODD multiples of 4 occur with probaility 1/8 by considering a partition of the natural numbers into sets of 8 consecutive numbers.

I meant to mention this in my previous message. Cheers.

Tony


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top

Conferences | Forums | Topics | Previous Topic | Next Topic

You may be curious to have a look at the old CTK Exchange archive.
Please do not post there.

|Front page| |Contents|

Copyright © 1996-2018 Alexander Bogomolny

71547462