For this exercise you can use Wolfram Alpha
a) I know that 2 0 1 8 7 6 ≡ 7 6 mod (100) , and the smallest natural number n > 1 such that 2 0 1 8 n ≡ 7 6 mod (100) is n = 4 .
b) I know that 2 0 1 8 7 7 6 ≡ 7 7 6 mod (1000) , and the smallest natural number n > 2 such that 2 0 1 8 n ≡ 7 7 6 mod (100) is n = 1 6 .
c) I know that 2 0 1 8 9 7 7 6 ≡ 9 7 7 6 mod (10000) , and the smallest natural number n > 3 such that 2 0 1 8 n ≡ 9 7 7 6 mod (10000) is n = 7 6 .
d) I can continue, and so on, for example, I know that 2 0 1 8 7 9 7 7 6 ≡ 7 9 7 7 6 mod (100000) .
e) I know that 2 0 1 8 3 7 9 7 7 6 ≡ 3 7 9 7 7 6 mod (1000000) .
f) I know that 2 0 1 8 1 3 7 9 7 7 6 ≡ 1 3 7 9 7 7 6 mod (10000000) ...
My question is, how do I know this? ,
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.
Yes, fantastic!
Mathematica
i=6;While[PowerMod[2018,i++,10^6]!=379776];i-1
yelds
2276
-or- you can use
MultiplicativeOrder[2018,10^6,{379776}]
Yup, I suppose that this is a way to do it, but I am waiting for a solution with number theory or algebra (or maths)...
Log in to reply
a solution is a solution... This is why ProjectEuler uses massive numbers in order to avoid brute force approaches and discover the hidden maths... Nowadays, you should consider when posting a problem, that everyone has access to calculations like this.
Log in to reply
My solution don't use brute force. Here, there is a guideline of my solution . I can tell you a number n with 100 digits or 1000 digits such that 2 0 1 8 n ≡ n mod 10 n ) and this just starts to cause problems with a computer...
Log in to reply
@Guillermo Templado – sorry mod 1 0 1 0 0 or mod 1 0 1 0 0 0
Log in to reply
@Guillermo Templado – this is what I'm talking about my friend.If you want to make nice challenges you must make it difficult for a computer to solve...that's why I mentioned ProjectEuler.. ever heard of it?
Problem Loading...
Note Loading...
Set Loading...
For this question, we can use the property that for any n > k , 2 0 1 8 n ≡ 2 0 1 8 n + 4 ⋅ 5 k − 2 mod ( 1 0 k ) for any integer k > 1
So putting k = 6 , we get 2 0 1 8 n ≡ 2 0 1 8 n + 2 5 0 0 mod ( 1 0 6 )
We are also given that 2 0 1 8 3 7 9 7 7 6 ≡ 3 7 9 7 7 6 mod (1000000)
So, whatever remainder we get after dividing 379776 from 2500 will yield the same last 6 digits.
So the answer is 2 2 7 6