https://school.programmers.co.kr/learn/courses/30/lessons/12954
class Solution {
public long[] solution(long x, int n) {
long[] answer = new long[n];
long result =x;
for(int i=0 ; i<n; i++){
answer[i]= x;
x= result +x;
}
return answer;
}
}