Limited Factors

Algebra Level 5

Find the number of positive integers less than 1000 1000 that evenly divide

2 20 1 2^{20}-1


The answer is 23.

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.

7 solutions

Finn Hulse
Dec 3, 2014

Factoring by DoS gives ( 2 10 1 ) ( 2 10 + 1 ) (2^{10}-1)(2^{10}+1) . Further expanding, ( 2 5 1 ) ( 2 5 + 1 ) ( 2 10 + 1 ) (2^5-1)(2^5+1)(2^{10}+1) . We can compute this quickly to get 2 20 1 = ( 31 ) ( 33 ) ( 1025 ) 2^{20}-1=(31)(33)(1025) . Luckily for us, 31 × 33 > 1000 31 \times 33 > 1000 , and 1025 > 1000 1025 > 1000 , which knocks out a lot of difficult casework. Factoring the entire thing gives

3 × 5 2 × 11 × 31 × 41. 3 \times 5^2 \times 11 \times 31 \times 41.

The tricky part is counting. We can isolate factors and construct a list. Factors that are divisible by 3 3 : 3 , 15 , 33 , 75 , 93 , 123 , 165 , 465 , 615 , 825 3, 15, 33, 75, 93, 123, 165, 465, 615, 825 . Factors divisible by 5 5 that aren't already accounted for: 5 , 25 , 55 , 155 , 205 , 275 , 775 5, 25, 55, 155, 205, 275, 775 . Factors divisible by 11 11 that aren't already accounted for: 11 , 341 , 451 11, 341, 451 . Last but not least, we have just 1 1 , 31 31 , and 41 41 . Thus, there are 23 \boxed{23} integers less than 1000 1000 that divide 2 20 1 2^{20}-1 .

The question previously did not explicitly state positive integers. Those who answered 71 ( 23 positive, 48 negative ) were marked correct.

Calvin Lin Staff - 6 years, 6 months ago

Log in to reply

Yeah I'm sorry.

Finn Hulse - 6 years, 6 months ago

Is there a faster way of doing this problem? I got the DoS part..

Kevin Mo - 6 years, 6 months ago

Log in to reply

I would like to know the answer to this as well. But I think that my solution is the fastest.

Finn Hulse - 6 years, 6 months ago

I'm confused on whether I should use programming or not to solve such problems.

Aryan Gaikwad - 6 years, 3 months ago

2 1 0 + 1 2^10+1 is sophie germainable :3

Cody Johnson - 5 years, 4 months ago

Did the same way !

Samanvay Vajpayee - 6 years, 5 months ago
Bill Bell
Jan 15, 2015

Seeing no clever way of doing this I used the Python sympy library:

Vraj Mehta
Dec 21, 2014

Using Java Netbeans Programmer..

This Is the Programming screen

Output Screen

And Output Is 23..

Haha, that is the efficient method. Why waste your time factoring when you can script in a minute ;)

Austin McCoy - 6 years, 5 months ago
Seth Lovelace
Dec 2, 2014

Here is my solution:

2 20 1 = 1048575 = ( 3 ) ( 5 2 ) ( 11 ) ( 31 ) ( 41 ) { 2 }^{ 20 }-1=1048575=(3)({ 5 }^{ 2 })(11)(31)(41)

Now we can count the number of factors from the prime factorization, but we must remember: our factors must be less than 1000. Generating our factors less than 1000, we have:

1 , 3 , 5 , 11 , 15 , 25 , 31 , 33 , 41 , 55 , 75 , 93 , 123 , 155 , 165 , 205 , 275 , 341 , \boxed{ 1, 3, 5, 11, 15, 25, 31, 33, 41, 55, 75, 93, 123, 155, 165, 205, 275, 341,} 451 , 465 , 615 , 775 , 825 \boxed{451, 465, 615, 775, 825}

Aryan Gaikwad
Mar 14, 2015

Java solution -

int n = 0;
    for(int i = 1; i < 1000; i++)
        if((Math.pow(2,20) - 1) % i == 0) n++;
System.out.println(n);
Vinay Agarwal
Feb 10, 2015

I did it using java code

Same Here!!

Prakhar Gupta - 6 years, 4 months ago
Ajit Athle
Dec 2, 2014

1, 3, 5, 11, 15, 25, 31, 33, 41, 55, 75, 93, 123, 155, 165, 205, 275, 341, 451, 465, 615, 775, 825 -- in all 23 factors.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...