AIME Problem 7

There is a prime number p p such that 16 p + 1 16p+1 is the cube of a positive integer. Find p p .


The answer is 307.

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.

6 solutions

Vaibhav Prasad
Mar 29, 2015

Let 16 p + 1 = a 3 16 p = a 3 1 16 p = ( a 1 ) ( a 2 + a + 1 ) 16p+1=a^3\\ \rightarrow 16p=a^3-1\\ \rightarrow 16p=(a-1)(a^2+a+1)

Since a 2 + a + 1 = a ( a + 1 ) + 1 a^2+a+1=a(a+1)+1 would always be odd, thus we know that 16 must divide a 1 a - 1 . If a 1 = 16 p a - 1 = 16 p , then we have a 2 + a + 1 = 1 a ^2 +a + 1 = 1 which gives us a = 0 a = 0 , which we reject. Thus, a 1 = 16 a - 1 = 16 and a 2 + a + 1 = p a^2 + a + 1 = p .

a 1 = 16 a = 17 a-1=16\\ \rightarrow a=17

Now that we have a = 17 a=17 , we get

a 2 + a + 1 = p = 289 + 17 + 1 = 307 a^2 + a + 1 = p = 289+17+1 = \boxed{307}

Upvote it if you liked it

Moderator note:

Care has to be taken when going from w x = y z wx = yz and wanting that w = y w = y . We have to show that w y w \mid y and y w y \mid w in order to conclude that w = y w = y .

Yeah. Same method! Good job!

Mehul Arora - 6 years, 2 months ago

Log in to reply

Thanks a lot

Vaibhav Prasad - 6 years, 2 months ago

Log in to reply

¨ \ddot\smile ¨ \ddot\smile ¨ \ddot\smile ¨ \ddot\smile ¨ \ddot\smile . But how do you prove that this is the smallest prime??

Mehul Arora - 6 years, 2 months ago

Log in to reply

@Mehul Arora There's actually no need to do that since the only prime value of p p possible is 307 307 . No other prime would work. The more formal argument, i.e., the proof that 307 307 is the unique prime p p such that the problem conditions hold is given by using a slight variation of Euclid's Lemma while noting the parity of the terms in products of both LHS and RHS. This is actually more of a Number Theory problem than an Algebra problem.

Prasun Biswas - 5 years, 10 months ago

Same solution! Upvoted!

Nihar Mahajan - 6 years, 2 months ago

Same solution! Cheers!

Rohit Ner - 5 years, 8 months ago

Great bro!! Where are we taught such methods??

Nishant Ranjan - 1 year, 6 months ago

Same brooo

FreddyFozzyFilms Pu - 1 year ago
Andrea Palma
Mar 29, 2015

By hypotesys 16 p + 1 = ( a + 1 ) 3 16p + 1 = (a+1)^3 so

16 p = a 3 + 3 a 2 + 3 a = a ( a 2 + 3 a + 3 ) 16p = a^3 + 3a^2+3a = a(a^2 + 3a + 3)

Now a 2 + 3 a + 3 a^2 + 3a + 3 is odd. In fact a 2 + 3 a a^2 + 3a is even because a 2 + 3 a = a ( a + 3 ) a^2 + 3a = a(a+3) . If a a is even a + 3 a+3 is odd ad viceversa. So the product is between an even and an odd. So it is even. This means 2 2 doesn't divide a 2 + 3 a + 3 a^2 + 3a + 3 , and 16 16 must divide a a .

We found that a = 16 b a = 16b and substituting into our equation we have

p = ( 256 b 2 + 48 b + 3 ) b p = (256b^2+48b+3)b

Since the natural b b divides a prime p p , it must be p p or 1 1 . If it is p p then we have p = ( 256 p 2 + 48 p + 3 ) p > p p = (256p^2+48p+3)p > p . So it must be b = 1 b = 1 and p = 307 p = 307 .

Hm, why must we have a = 16 b a = 16 b ? I can see how it must be a multiple of 2, but you have to explain why a 2 + 3 a + 3 a^2 + 3a + 3 cannot contribute another power of 2.

Also, why couldn't we have 256 b 2 + 48 b + 3 = 1 256 b^2 + 48 b + 3 = 1 ?

Calvin Lin Staff - 5 years, 9 months ago

Log in to reply

Hello Calvin! Thanks for pointing this out for me! I've been too short in my proof. Sorry for that! I fix it now.

CLAIM: a 2 + 3 a + 3 a^2 + 3a + 3 is odd. In fact a 2 + 3 a a^2 + 3a is even because a 2 + 3 a = a ( a + 3 ) a^2 + 3a = a(a+3) . If a a is even a + 3 a+3 is odd ad viceversa. So the product is between an even and an odd. So it is even. This means 2 2 doesn't divide a 2 + 3 a + 3 a^2 + 3a + 3 , and 16 16 must divide a a .

CLAIM: b = 1 b=1 Since the natural b b divides a prime p p , it must be p p or 1 1 . If it is p p then we have p = ( 256 p 2 + 48 p + 3 ) p > p p = (256p^2+48p+3)p > p . So it must be b = 1 b = 1 and p = 307 p = 307 .

Andrea Palma - 5 years, 9 months ago

Log in to reply

Great! Could you edit these into your solution? That would make it fully explained.

Calvin Lin Staff - 5 years, 9 months ago

Log in to reply

@Calvin Lin Sure! Just did it! THANKS!

Andrea Palma - 5 years, 9 months ago
Leon Fone
Mar 22, 2015

Notice that 16p + 1 = a^3 , then 16p = a^3 - 1 = (a-1)(a^2+a+1)

Notice that a^2 + a + 1 = a(a+1) + 1 is always an odd number , so a^2 + a + 1 cannot be equal to 16.

Thus a - 1 = 16 , we get a = 17 , and p = a^2 + a + 1 = 307 , which is a prime

Ravi Dwivedi
Sep 3, 2015

Since 16 p + 1 16p+1 is odd.

Let 16 p + 1 = ( 2 k + 1 ) 3 = 8 k 3 + 12 k 2 + 6 k + 1 16p+1=(2k+1)^3= 8k^3+12k^2+6k+1

8 p = k ( 4 k 2 + 6 k + 3 ) \implies 8p=k(4k^2+6k+3)

Since p p is prime and cannot be even (because when p = 2 p=2 we note that 16 × 2 + 1 = 33 16 \times 2 + 1 =33 is not a cube) and 4 k 2 + 6 k + 3 4k^2+6k+3 is odd

So k k must be equal to 8 8 and

p = 4 8 2 + 6 8 + 3 = 307 p=4 \cdot 8^2 + 6 \cdot 8 + 3= \boxed{307}

Also we check that 16 × 307 + 1 = 4913 = 1 7 3 16 \times 307 + 1=4913 = 17^3 is a perfect cube.

Moderator note:

Good usage of Euclid's lemma / Prime factorization to solve this problem.

K T
Feb 15, 2019

x 3 = 16 p + 1 x 3 1 ( m o d 16 ) x 1 ( m o d 16 ) x^3=16p+1\Rightarrow x^3 \equiv 1\pmod{16} \Rightarrow x \equiv 1\pmod{16} Trying the first few:

x x x 3 1 16 \frac{x^3-1}{16}
1 0
17 307

307 is a prime.

The most underrated answer!

boutta overcome - 5 months, 2 weeks ago
Arpit Arora
Jul 6, 2016

Since 16p+1 is an odd number, the integer it is the cube of, must be of the form 2n+1.

Solving 16p+1 = (2n+1)^3, we get 8p = n(4n^2 + 6n + 3)

The factor (4n^2 + 6n + 3) doesn't have integral factors. So, it can't be factorised further and, therefore, must be prime.

So, n must be equal to 8 and p must be equal to (4n^2 + 6n + 3).

Substituting n = 8 in p, we get p = 307.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...