Problem 134. Geometric series
Find the sum, given the first term t1, the common ratio r, and number of terms n.
Examples
If input t1=1, r=1, n=7 then output y=7
If input t1=10, r=10, n=5 then output y=111110.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers272
Suggested Problems
-
Return the 3n+1 sequence for n
8352 Solvers
-
Replace NaNs with the number that appears to its left in the row.
3015 Solvers
-
453 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
542 Solvers
-
Reverse the elements of an array
1049 Solvers
More from this Author100
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!