AIME I problem #3

Find the number of rational numbers r ( 0 < r < 1 ) r\, (0<r<1) such that when r r is written as a fraction in lowest terms, the numerator and denominator sum to 1000.


The answer is 200.

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.

5 solutions

Trevor Arashiro
Feb 22, 2015

assume that the number takes the form a b \frac{a}{b} .

Where a and b are coprime and a+b=1000

, a = 1000 b \therefore, a=1000-b

Rewriting our fraction yields

1000 b b \dfrac{1000-b}{b}

1000 b b b \dfrac{1000}{b}-\dfrac{b}{b}

Note that this means that b must be coprime with 1000, aka, not divisible by 2 or 5 since is must be unsimplifyable.)

The largest value of a is 499 and the min for b is 501, since a<b for a b < 1 \frac{a}{b}<1

Now, here's the main reason I posted this. I wanted to show a small short cut to the continuation of the problem. The first 3/4ths of my solution is the same, but the last quarter (this half) is different.

We need to find all numbers co-prime to 1000, but less than 500, using Euler's totient function ( ϕ \phi ) on 1000 would give us numbers greater than 500, thus, to find out the answer, we will compute ϕ ( 500 ) \phi (500) . In the short: The totient function is simply then number times 1-1/each prime factor multiplied out and it finds the number of numbers less then n coprime to n.

ϕ 500 = 500 ( 1 1 2 ) ( 1 1 5 ) = 200 \boxed{\phi{500}=500(1-\frac{1}{2})(1-\frac{1}{5})=200}

"Unsimplifyable" ...... yes, it really should be a word. :) Nice handiwork with the totient function; I did it the old-fashioned way with arithmetic progressions.

Brian Charlesworth - 6 years, 3 months ago

Log in to reply

lol, I thought it was already a word. I usually don't post unoriginal problems unless they are either really good or I found a really good/unique solution to it. This falls into the latter category.

Trevor Arashiro - 6 years, 3 months ago

... The totient function is simply then number times 1-1/each factor multiplied out and ...

Small typo. It should be each "prime factor".

Siddhartha Srivastava - 6 years, 3 months ago

oh, i forgot totient function. id did it with arithmetic.

Muhammad Ihsan - 6 years, 1 month ago

Nice with the totient. I just used that numbers coprime with 10 (and thus 1000) are those ending in 1, 3, 7, or 9. 4/10 * 500 = 200

Gregory Lewis - 5 years, 1 month ago
Isaiah Kim
Mar 4, 2015

We have that the set of these rational numbers is from 1 999 \frac{1}{999} to 499 501 \frac{499}{501} where each each element n m \frac{n}{m} has n + m = 1000 n+m =1000 and n m \frac{n}{m} is irreducible.

We note that n m = 1000 m m = 1000 m 1 \frac{n}{m} =\frac{1000-m}{m}=\frac{1000}{m}-1 . Hence, n m \frac{n}{m} is irreducible if 1000 m \frac{1000}{m} is irreducible, and 1000 m \frac{1000}{m} is irreducible if m m is not divisible by 2 2 or 5 5 . Thus, the answer to the question is the number of integers between 999 999 and 501 501 inclusive that are not divisible by 2 2 or 5 5 .

We note there are 499 499 numbers between 501 501 and 999 999 , and

  • 249 249 of them are divisible by 2 2
  • 99 99 of them are divisible by 5 5
  • 49 49 of them are divisible by 10 10

Using the Principle of Inclusion and Exclusion, we get that there are 499 249 99 + 49 = 200 499-249-99+49=200 numbers between 501 501 and 999 999 are not divisible by either 2 2 or 5 5 , so our answer is 200 \boxed{200} .

Nice and simple!

Holger Mueller - 5 years, 4 months ago

I understand you came to the correct answer, but why are the 49 integers divisible by 10 being added back after subtracting the integers divisible by 2 and 5?

Matt Maloney - 2 years, 5 months ago

Log in to reply

Maybe look at the principle of inclusion exclusion wiki

Madhur Agrawal - 2 years, 4 months ago

If you didn't add the numbers divisible by 10 again, you would have subtracted them twice : Once in the set of numbers divisible by 2 and once in the set of numbers divisible by 5!

That is the principle of in-/exclusion to count the elements of finite sets: A B = A + B A B , A , B finite sets |A\cup B|=|A|+|B|-|A\cap B|,\qquad A,\:B\text{ finite sets}

Carsten Meyer - 1 year, 9 months ago

Log in to reply

Copied and pasted from AOPS, 2014 AIME question number 3. Not cool man!! That's called plagiarizing.

Mr. Krabs - 4 months, 3 weeks ago

Log in to reply

@Mr. Krabs The problem header states "AIME I problem #3". While the year could have been given as well, it is pretty clear from the header that the author did not invent the problem, and gave the necessary references, wouldn't you agree?

Carsten Meyer - 2 months, 2 weeks ago
Jason Martin
Mar 12, 2015

If o < a b < 1 o< \frac {a}{b} <1 is in reduced form, then g c d ( a , b ) = 1 gcd(a,b)=1 and 1 a < b 1 \leq a < b . If a + b = 1000 a+b=1000 , then the total number should be half of Euler's Totient function at 1000 1000 , which gives 200 \boxed{200} .

i do this too

Muhammad Hatta Hakim - 2 years, 5 months ago
K P
Feb 25, 2019

Let's say that the number r takes the form p/q where p and q are coprime integers and p=1000-q (as required).So p/q takes the form (1000/q - 1).We also have Phi(1000)=400.The other requirement is that 0<r<1 => 0< (1000/q - 1)<1 => 1<1000/q<2 => 500<q<1000.Thus we have that q must fall in the range of (500,1000).We have one more requirement that r is written as a fraction in lowest terms which means q must be coprime to 1000.Therefore we need to find all such integers q which are coprime to 1000 and falls in the range (500,1000).

We know that gcd(a,b) =gcd(a-b,a) which means gcd(1000,499)=gcd(501,1000); gcd(1000,498)=gcd(502,1000);. .........gcd(1000,1)=gcd(499,1000). So we have that every coprime to 1000 in the interval [1,500] has sort of its image in [500,1000] and there are equal number of coprimes to 1000 in the intervals [1,500] and [500,1000] and because 500 is not coprime to 1000, the number of coprimes to 1000 in the interval (500,1000)=1/2(Phi 1000)= 400/2=200.Hence there are * 200* such rational numbers.

Jochem Jonges
Dec 24, 2017

We are looking for the fractions 0 < a 1000 a < 1 0<\frac{a}{1000-a}< 1 such that gcd ( a , 1000 a ) = gcd ( a , 1000 ) = 1 \gcd(a,1000-a)=\gcd(a,1000) = 1

Thus we are looking for all 1 a 500 1\leq a \leq 500 such that gcd ( a , 1000 ) = 1 \gcd(a,1000)=1 .

The desired number is ϕ ( 500 ) = 200 \phi(500) = 200

This sounds like the weak version of Erdos conjecture, and I'm using the word weak only to clarify

Ryan Matthew - 3 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...