In your class, you have started lessons about arithmetic progression.
Since you are also a programmer, you have decided to write a function that will print the first 'n' elements of the sequence with the given common difference 'r' and first element 'a'.
Result should be separated by comma and space.
Took me a bit to understand what the kata actually wanted me to do. May want to rephrase it a bit. Anyway kata wasn't bad at all, this is just my opinion.
Minor rewrite:
In your class, you have started lessons about arithmetic progression.
Since you are also a programmer, you have decided to write a function that will print the first 'n' elements of the sequence with the given common difference 'r' and first element 'a'.
Result should be separated by comma and space.
Example:
arithmetic_sequence_elements(1, 2, 5) == '1, 3, 5, 7, 9'
More info: https://en.wikipedia.org/wiki/Arithmetic_progression
Took me a bit to understand what the kata actually wanted me to do. May want to rephrase it a bit. Anyway kata wasn't bad at all, this is just my opinion.