Atrocious primes

Level 2

A number p n p^n is said to be atrocious if p n ( 7 p n + 1 ) , p^n \Big| \big(7^{p^n}+1\big), where p p is prime.

Find the sum of all atrocious numbers.


The answer is 2.

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.

4 solutions

I'm considering n 1 n\geq1 .

First, we notice, p n p^n

( ( p 1 ) + 1 ) n \equiv ((p-1)+1)^n ( m o d (mod ( p 1 ) ) (p-1))

1 n \equiv 1^n ( m o d (mod ( p 1 ) ) (p-1)) [With the help of Binomial Theorem ]

1 \equiv 1 ( m o d (mod ( p 1 ) ) (p-1)) .

So, p n 1 p^n \equiv 1 ( m o d (mod ( p 1 ) ) (p-1)) ( 1 ) \cdots{ } \cdots{ } \cdots{ }(1) .


Again, 7 p n + 1 7^{p^n}+1

7 p n m o d ( p 1 ) + 1 \equiv 7^{p^n \mod (p-1)}+1 ( m o d p ) (\mod p) [By Euler's Theorem ]

7 1 + 1 \equiv 7^1+1 ( m o d p ) (\mod p) [By (1) ]

8 \equiv 8 ( m o d p ) (\mod p)

Hence, 7 p n + 1 2 3 7^{p^n}+1 \equiv 2^3 ( m o d p ) (\mod p) ( 2 ) \cdots{ } \cdots{ } \cdots{ }(2)


Now, p n ( 7 p n + 1 ) p^n \mid (7^{p^n}+1) only if p ( 7 p n + 1 ) p \mid (7^{p^n}+1) , since p ∤ ( 7 p n + 1 ) p \not \mid (7^{p^n}+1) \implies p n ∤ ( 7 p n + 1 ) p^n \not \mid (7^{p^n}+1) , when p p is a prime.

From (2) , p ( 7 p n + 1 ) p 2 3 p = 2 p \mid (7^{p^n}+1) \iff p \mid 2^3 \iff p=2 . So, p n p^n with p 2 p\neq2 can't be Atrocious .

We're left only with integers 2 n 2^n .


For n = 1 n=1 , 2 n = 2 2^n=2 , which is an atrocious number [By (2) ]

For n = 2 , 3 , 4 n=2,3,4 , you can calculate to observe ( 7 2 n + 1 ) 2 ( m o d 2 n ) (7^{2^n}+1) \equiv 2 (\mod 2^n) . Then the reasonable conjecture can be drawn: " ( 7 2 n + 1 ) 2 ( m o d 2 n ) (7^{2^n}+1) \equiv 2 (\mod 2^n) , for every n 2 n\geq2 ; which can be verified by a simple proof by induction on n n .

So, 2 2 is the only 'atrocious' number. So, the answer is 2 \boxed{2} .

I resolved that the easiest way to do this problem is to resolve that 7^k^n + 1 must be even when n>0, so the only prime that will divide it is 2

Jacob Kirmayer - 2 years, 2 months ago

Log in to reply

12 12 is even. Is 2 2 the only prime that divides 12 12 ?

Muhammad Rasel Parvej - 1 year, 3 months ago

yes, Jacob that is the easiest observation.

Abhisruta Maity - 1 year ago

Hey, I don't understand how you did the step with euler theorem. Please elaborate.

Shishir Shahi - 3 years, 11 months ago

Log in to reply

Please, read the first numerical example here .

Muhammad Rasel Parvej - 3 years, 11 months ago

Log in to reply

Ok, Now I get the rough idea.

Shishir Shahi - 3 years, 11 months ago
Andrea Virgillito
Mar 27, 2017

Due to the LFT 7 p n p n 1 1 ( m o d p n ) 7^{{p^{n}-p^{n-1}}} \equiv 1 (mod p^n) because ϕ ( p n ) = p n ( 1 1 p ) \phi(p^n)= p^n(1-\frac{1}{p}) = p n p n 1 p^{n}-p^{n-1}

But 7 p n 7^{p^n} = 7 p n 7 p n 1 7 p n 1 7^{p^n} * \frac{7^{p^{n-1}}}{7^{p^{n-1}}} = 7 p n p n 1 7 p n 1 7 p n 1 ( m o d p n ) 7^{p^{n}-p^{n-1}} * 7^{p^{n-1}} \equiv 7^{p^{n-1}} (mod p^{n}) So if p n 7 p n + 1 p^n | 7^{p^n} +1 then p n 7 p n 1 + 1 p^n | 7^{p^{n-1}} +1 . If we apply the theorem k times we get that p n 7 p n k + 1 p^n | 7^{p^{n-k}} +1 , in particular by using it n times we get that p n 7 p 0 + 1 p n 8 p^n|7^{p^0}+1 \Rightarrow p^n|8 now we can easly conclude that the only possible values of p and n are respectively 2 and 1 that is p n = 2 1 = 2 p^n = 2^1=2

Well, why couldn't n also 2 and 3? Even then, p n 8 p^n|8 for p=2.

Dhrubajyoti Ghosh - 3 years, 10 months ago
Aaryan Maheshwari
Jun 28, 2019

Since 7 to the power anything is odd, so the right hand side is even. So the LHS must also be even. This is only possible in the case of p=2. {Since it is the only even prime, and even to the power anything is also even.}.

Aakash Khandelwal
May 30, 2017

Given: 7 p n + 1 0 ( m o d p n ) 7^{p^{n}} + 1 \equiv 0 \pmod {p^{n}}

But 7 p n 1 0 ( m o d p n ) 7^{p^{n}} -1 \equiv 0 \pmod {p^{n}}

Thus

2 0 ( m o d p n ) 2 \equiv 0 \pmod {p^{n}}

And hence

p n = 2 p^{n}= 2

I think that your solution is flawed.

Shishir Shahi - 3 years, 11 months ago

You wrongly applied FLT.

Abhisruta Maity - 1 year ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...