prime numbers

This topic has expert replies
Senior | Next Rank: 100 Posts
Posts: 57
Joined: Fri Apr 03, 2009 10:26 pm

prime numbers

by mkhanna » Thu Sep 24, 2009 8:31 am
The function f is defined for all positive integers n by the following rule: f(n) is the number of positive integers each of which is less than n and has no positive factor in common with n other than 1. If p is prime, then f(p) =
a) P-1
b) P-2
c) (P+1)/2
d) (P-1)/2
e) 2
Source: — Problem Solving |

Newbie | Next Rank: 10 Posts
Posts: 5
Joined: Mon Aug 24, 2009 1:29 pm
Thanked: 2 times

by bdoug » Thu Sep 24, 2009 8:43 am
We are looking for the number of positive integers less than P that has no common factors except for 1

The problem gives us that P is a prime number, meaning it's only factors are P and 1, therefore, every positive integer less than P will be included in our answer, so we simply take P - 1 to get the number of positive integers less than P.

I found it a bit tricky when deciding whether to exclude the integer 1 (which would have given us P - 2 for the answer), but I decided to include it because it is a positive integer less than P with no common factors except for 1.

Master | Next Rank: 500 Posts
Posts: 107
Joined: Tue Sep 15, 2009 7:18 pm
Location: Pune, India
Thanked: 6 times
GMAT Score:630

by vivekjaiswal » Thu Sep 24, 2009 7:57 pm
bdoug wrote:We are looking for the number of positive integers less than P that has no common factors except for 1

The problem gives us that P is a prime number, meaning it's only factors are P and 1, therefore, every positive integer less than P will be included in our answer, so we simply take P - 1 to get the number of positive integers less than P.

I found it a bit tricky when deciding whether to exclude the integer 1 (which would have given us P - 2 for the answer), but I decided to include it because it is a positive integer less than P with no common factors except for 1.
Nice explanation, thanks bdoug