Problem 56278. Easy Sequences 83: Digits of Powers of 3
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 commentsProblem Recent Solvers2
Suggested Problems
-
2493 Solvers
-
Is my wife right? Now with even more wrong husband
1325 Solvers
-
Calculate the derivative of a polynomial
231 Solvers
-
Create a two dimensional zero matrix
498 Solvers
-
Change the first and last diagonal element of the identity matrix to zero
153 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!