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

```python
geometric_sequence_elements(2, 3, 5) == '2, 6, 18, 54, 162'
```

More info: https://en.wikipedia.org/wiki/Geometric_progression

Source: codewars | Difficulty: EASY
Tags: Fundamentals

Starter code: def geometric_sequence_elements(a, r, n):
	

Solutions:
def geometric_sequence_elements(a, r, n):
	return ', '.join((str(a * r ** i) for i in range(n)))


def geometric_sequence_elements(a, r, n):
	l = []
	for _ in range(n):
		l.append(str(a))
		a *= r
	return ', '.join(l)


def geometric_sequence_elements(a, r, n):
	return ', '.join([str(a * r ** x) for x in list(range(n))])


def geometric_sequence_elements(a, r, n):
	return str([a * pow(r, i) for i in range(n)])[1:-1]


def geometric_sequence_elements(a, r, n):
	arr = [a]
	for i in range(n - 1):
		arr.append(arr[i] * r)
	return ', '.join(map(str, arr))


geometric_sequence_elements = lambda a, r, n: ', '.join((str(a * r ** e) for e in range(n)))


def geometric_sequence_elements(a, r, n):
	seq = []
	for i in range(n):
		seq.append(a * r ** i)
	return ', '.join((str(e) for e in seq))


def geometric_sequence_elements(a, r, n):
	string = ''
	for x in range(0, n):
		if x != n - 1:
			string += str(a * r ** x) + ', '
		else:
			string += str(a * r ** x)
	return string