How to find smallest prime factor?

  • MHB
  • Thread starter highschoolmath
  • Start date
  • Tags
    Prime
In summary, the problem is asking to find the smallest prime factor of (2^50)(50!)+1, where h(n) is the product of all even integers from 2 to n, inclusive. By considering the divisors of h(n) and adding 1 to the expression, it is determined that the smallest prime factor must be greater than 50.
  • #1
highschoolmath
5
0
I was given this problem.

For every positive even integer, n, the function h(n), is defined to be the product of all the even integers from 2 to n, inclusive. If p is the smallest prime factor of h(100)+1, then p is

a) between 2 and 10
b) between 10 and 20
c) between 20 and 30
d) between 30 and 40
e) greater than 40

Ideas?
 
Mathematics news on Phys.org
  • #2
high schoolmath said:
I was given this problem.

For every positive even integer, n, the function h(n), is defined to be the product of all the even integers from 2 to n, inclusive. If p is the smallest prime factor of h(100)+1, then p is

a) between 2 and 10
b) between 10 and 20
c) between 20 and 30
d) between 30 and 40
e) greater than 40

Ideas?

Hi high schoolmath! Welcome to MHB! (Smile)

Here are my ideas:
  1. What is the general form of h(n)?
  2. What are its divisors?
  3. What happens to those divisors if we add 1 to h(n)?
(Thinking)
 
  • #3
Unfortunately, that's all the info I have! I wondering if the solution has to do with changing the equation? If we know h(100)= 2x4x6x...x98x100, then this should equal (2^50)(50!) right? But then the problem is to find the smallest prime factor of (2^50)(50!)+1.

I think there must be an easy solution to this somehow!
 
  • #4
high schoolmath said:
Unfortunately, that's all the info I have! I wondering if the solution has to do with changing the equation? If we know h(100)= 2x4x6x...x98x100, then this should equal (2^50)(50!) right? But then the problem is to find the smallest prime factor of (2^50)(50!)+1.

Good! (Nod)

I think there must be an easy solution to this somehow!

You're almost there.
Note that all numbers up to 50 are dividers of (2^50)(50!).
Will they also divide (2^50)(50!) + 1? (Wondering)
 
  • #5
Well, I know that (2^50)(50!) + 1 is an odd number, so none of the even numbers from 1 to 50 will divide into it. But I'm not sure how I can figure out whether the odd numbers can divide into it, let alone the prime numbers.

50! will have I imagine at least 5 zeroes because it's multiplying 10 five times. So, I might be wrong, but I might guess that the number will end in "00001".

Is there another rule I should know? I think it's getting close...
 
  • #6
Hmm, I think I see where ILS is going with this. We are looking at \(\displaystyle \frac{2^{50}50!+1}{p}\), where $p$ is prime.

What if we rewrote this as \(\displaystyle \frac{2^{50}50!}{p}+\frac{1}{p}\)?

This is just using a property of fractions. Now, in order for the whole thing to be a whole number, either both terms must be whole numbers or both terms must be fractions and add together in such a way that they become a whole number. If we got a whole number plus a fraction, that would clearly not be a whole number right? :)
 
  • #7
Let's pick a number that is divisible by 5.
Say 45, which is also divisible by 3.
Is 46 divisible by 5? Or by 3?
Why not? (Wondering)
 
  • #8
I get it!

If the prime number were less than 50, then it would divide into the left part of the expression, resulting in a whole number, and then adding 1/p would result in a fraction.

But since we know p divides into the entire expression resulting in a while integer, then p must be greater than 50. Right?!

Is this how you both would have reasoned it out? I'd appreciate hearing your thought processes for learning purposes. In retrospect, this seems so obvious!
 
  • #9
high schoolmath said:
I get it!

If the prime number were less than 50, then it would divide into the left part of the expression, resulting in a whole number, and then adding 1/p would result in a fraction.

But since we know p divides into the entire expression resulting in a while integer, then p must be greater than 50. Right?!

Is this how you both would have reasoned it out? I'd appreciate hearing your thought processes for learning purposes. In retrospect, this seems so obvious!

That is correct and indeed the way to reason it out. (Mmm)
 
  • #10
Awesome- thanks to you both!
 

FAQ: How to find smallest prime factor?

What is a prime factor?

A prime factor is a number that can only be divided by itself and 1 without leaving a remainder. In other words, it is a number that is only divisible by 1 and itself.

Why is finding the smallest prime factor important?

Finding the smallest prime factor of a number can be helpful in various mathematical and computational applications. It can also be useful in simplifying fractions or finding the greatest common divisor of two numbers.

How do I find the smallest prime factor of a number?

To find the smallest prime factor of a number, you can use a technique called "trial division". This involves dividing the number by successively larger prime numbers until the result is a prime number. The last prime number used in the division will be the smallest prime factor.

What is the most efficient method for finding the smallest prime factor?

The most efficient method for finding the smallest prime factor is to use a pre-computed list of prime numbers and check if any of those numbers are factors of the given number. This method is faster and more accurate than trial division.

Are there any special cases to consider when finding the smallest prime factor?

Yes, there are a few special cases to consider when finding the smallest prime factor. These include numbers that are already prime, negative numbers, and numbers that are too large to be stored in a standard data type. It is important to handle these cases appropriately to ensure accurate results.

Similar threads

Replies
7
Views
1K
Replies
3
Views
1K
Replies
2
Views
1K
Replies
2
Views
1K
Replies
1
Views
750
Replies
5
Views
1K
Replies
19
Views
2K
Back
Top