The last Prime.

77777 77 7919 times 2 \large {\underbrace{77777\ldots77 }_{7919 \text{ times}} }^2

Find the remainder when the above number is divided by 7919.


The answer is 49.

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.

1 solution

Akshat Sharda
Mar 22, 2016

77777 7 7 2 7919 times ( m o d 7919 ) \underbrace{77777\ldots 77^2}_{7919 \text{ times}} \pmod{7919}

The above number can be written as,

( 7 1 0 7919 1 9 ) 2 ( m o d 7919 ) \left(7\cdot \frac{10^{7919}-1}{9}\right)^2 \pmod{7919}

We know,

1 0 ϕ ( 7919 ) = 1 0 7918 1 ( m o d 7919 ) ( 7 10 1 9 ) 2 7 2 49 ( m o d 7919 ) 10^{\phi(7919)}=10^{7918}\equiv 1\pmod {7919} \\ \therefore \left( 7 \cdot \frac{10-1}{9} \right)^2\equiv 7^2\equiv \boxed{49} \pmod{7919}


7919 is a prime number. • 7919 \text{ is a prime number.}

Nice written solution.

Although you have to justify the modulo with fractions, which is not always true. 18 2 9 3 ( m o d 6 ) \frac{18} {2} \equiv 9 \equiv 3 \pmod{6} 18 2 0 2 0 ( m o d 6 ) \frac{18} {2} \equiv \frac{0} {2} \equiv 0 \pmod{6}

Abdelhamid Saadi - 5 years, 2 months ago

Log in to reply

Aah! Can you please explain it? Maybe we should have co-prime numbers?

Akshat Sharda - 5 years, 2 months ago

Well written solution +1

A Former Brilliant Member - 5 years, 2 months ago

Log in to reply

Thanks .... :-) Nice problem

Akshat Sharda - 5 years, 2 months ago

Log in to reply

Can you please explain hw have you re-written 77777.....7 7 2 77777.....77^2 ?

Chirayu Bhardwaj - 5 years, 2 months ago

Log in to reply

@Chirayu Bhardwaj see , the number 10^7919 -1 gives 999.... and after dividing by 9 you get 1111..... and hence multiplying it by 7 we simply get 777....

A Former Brilliant Member - 5 years, 2 months ago

Log in to reply

@A Former Brilliant Member Oh ! did'nt see that. Ty

Chirayu Bhardwaj - 5 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...