Find the modulo of (1^n + 2^n + 3^n + 4^n) with 5.
Note: the value of n can be very large.
Hint : refer tag
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers33
Suggested Problems
-
Find the two most distant points
2960 Solvers
-
Compute a dot product of two vectors x and y
1058 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
14517 Solvers
-
Implement a bubble sort technique and output the number of swaps required
404 Solvers
-
195 Solvers
More from this Author5
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!