This problem is a simpler version of 'Easy Sequences 82: Digits of Powers of 2'. Given integers x and n, we are asked to return the last n digits of
. Please exclude leading zeros, if any.
As an added challenge, some functions and operations are disabled.
---------------
HINT: There is no need to use big integer class in this problem (nor in the previous problem for powers of 2).
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers4
Suggested Problems
-
Remove any row in which a NaN appears
8792 Solvers
-
1194 Solvers
-
The Answer to Life, the Universe, and Everything
588 Solvers
-
Volume of a sphere given its surface area
156 Solvers
-
poll: would you like the regexp (?@cmd) functionality to be banned in Cody?
182 Solvers
More from this Author116
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!