What is the smallest positive integer N such that k = 1 ∑ N k 2 0 1 8 is divisible by 2018?
Enter 0 if you come to the conclusion that no such N exists.
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.
Nice question! This is exactly how I've solved it.
We can also conclude that
For M = 2 p for prime p > 3 , then the smallest positive integer N such that ∑ k = 1 N k M is divisible by M is either equal to p , ϕ ( p ) or 2 1 ϕ ( p ) .
I don't think we can solve it this way if the numbers 2018 were replaced by something more sinister, like say 1 1 × 1 3 × 1 7 = 2 4 3 1 . Right? That is,
Find the smallest positive integer N such that ∑ k = 1 N k 2 4 3 1 is divisible by 2431. Enter 666 if you come to the conclusion that no such N exists.
I think we need to use order of an element , but I'm not quite sure. Thoughts?
Log in to reply
It is great to hear from you, Comrade! You are raising some great questions, but I'm afraid I'm currently too busy with work (and life) to get too deeply into this. Brilliant can be so tempting! Next year, when I plan to retire, I will have a lot more time, and you will see more of me on Brilliant.
U can use eulers Theorem
Log in to reply
Show us how!
Log in to reply
Lol the Fermat theorem you have used is a special case of Euler theorem
Log in to reply
@Anmol Arichwal – I will never object to the use of my country man's name, although it may be somewhat gratuitous here.
A^(phi(n))=1 mod n
Great solution!!!
Since the prime factorization of 2018 is 2×1009, we can see that x 2 0 1 8 = ( x 1 0 0 9 ) 2 ≡ x 2 (mod 2018), so N is also the smallest positive integer N such that ∑ k = 1 N k 2 is divisible by 2018. This sum is equal to 6 N ( N + 1 ) ( 2 N + 1 ) . In order for that to be divisible by 2018 it needs to contain a factor 1009, which can either be a factor of N, of N+1 or of 2N+1. The smallest possibilty is 2N+1=1009 => N= 504. We try it out: 6 2 × 5 0 4 3 + 3 × 5 0 4 2 + 5 0 4 = 2 1 2 1 0 × 2 0 1 8 , showing that this is a successful try, N = 5 0 4 .
By using python we obtain as output 5 0 4 .
1 2 3 4 5 |
|
Using M a t h e m a t i c a
n = 1; While[Mod[Sum[k^2018, {k, n++}], 2018] != 0]; n - 1
returns 504
Use the eulers theorem
A^(phi{n})=1 mod n ... So Phi (2018)=1008... So A^1008=1mod 2018... Squaring the congruence... A^2016=1 mod 2018... Or A^2018=A^2 mod 2018... So the sequence is divisible by 2018 iff ... 1^2 +2^2...........N^2= 0 mod 2018..
So [N][N+1][2N+1]/6 is=0 mod 2018...
As largest prime factor of 2018 is 1009.. Let 2N+1=1009..
Or N=504... Note::phi stands for the eulers totient function
You have to be careful when applying Euler's Theorem: in our case, it only works when g cd ( A , 2 0 1 8 ) = 1 , not for even numbers and not for A = 1 0 0 9 . Although I'm fond of the work of my country man, Fermat works out better here.
Tried WolframAlpha script:
"Sum (x^2018 from x=0 to N) mod 2018"
for
N= 1009 (Answer=1009),
N=1008 (Answer=0),
and
N= 1008/2=504 (Answer=0),
Therefore,
Answer=504
You have not demonstrated that any positive integer less than 504 also yields a value of 0.
Log in to reply
I didn't get success with 503 or 504/2.
So, I used 504 as one of three tries and it was accepted as correct.,😂.
Log in to reply
So how can you justify that 504 is indeed the correct answer?
Problem Loading...
Note Loading...
Set Loading...
Since 1009 is prime, Fermat tells us that k 1 0 0 9 ≡ k ( m o d 1 0 0 9 ) for all k . Squaring gives k 2 0 1 8 ≡ k 2 ( m o d 1 0 0 9 ) . This congruence holds m o d 2 0 1 8 as well since k 2 0 1 8 and k 2 have the same parity. We are asked to find the smallest positive integer N such that ∑ k = 1 N k 2 is divisible by 2018. Now ∑ k = 1 N k 2 = 6 N ( N + 1 ) ( 2 N + 1 ) . The smallest N such that this sum is divisible by 1009 is N = 5 0 4 , when 2 N + 1 = 1 0 0 9 . We check that ∑ k = 1 5 0 4 k 2 = 6 5 0 4 × 5 0 5 × 1 0 0 9 is even, so that the answer is N = 5 0 4 .