7 kyu
Geometric Progression Sequence
1,431 of 3,448baaart
Description:
In your class, you have started lessons about geometric progression.
Since you are also a programmer, you have decided to write a function that will print first n
elements of the sequence with the given constant r
and first element a
.
Result should be separated by comma and space.
Example
geometric_sequence_elements(2, 3, 5) == '2, 6, 18, 54, 162'
More info: https://en.wikipedia.org/wiki/Geometric_progression
Fundamentals
Similar Kata:
Stats:
Created | Aug 12, 2015 |
Published | Aug 12, 2015 |
Warriors Trained | 4783 |
Total Skips | 172 |
Total Code Submissions | 7948 |
Total Times Completed | 3448 |
Python Completions | 1431 |
JavaScript Completions | 1186 |
PHP Completions | 225 |
C# Completions | 279 |
Ruby Completions | 109 |
F# Completions | 37 |
Elixir Completions | 32 |
Kotlin Completions | 292 |
Total Stars | 28 |
% of votes with a positive feedback rating | 92% of 571 |
Total "Very Satisfied" Votes | 497 |
Total "Somewhat Satisfied" Votes | 60 |
Total "Not Satisfied" Votes | 14 |
Total Rank Assessments | 41 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |