2017-02-12 00:31:12 -08:00
|
|
|
// Author: Rodney Shaghoulian
|
|
|
|
|
// Github: github.com/rshaghoulian
|
|
|
|
|
// HackerRank: hackerrank.com/rshaghoulian
|
|
|
|
|
|
2017-02-07 01:14:49 -08:00
|
|
|
import java.util.Scanner;
|
|
|
|
|
|
|
|
|
|
class Solution{
|
|
|
|
|
public static void main(String []args) {
|
|
|
|
|
Scanner scan = new Scanner(System.in);
|
|
|
|
|
int t = scan.nextInt();
|
|
|
|
|
for (int i = 0; i < t; i++) {
|
|
|
|
|
int a = scan.nextInt();
|
|
|
|
|
int b = scan.nextInt();
|
|
|
|
|
int n = scan.nextInt();
|
|
|
|
|
|
|
|
|
|
for (int j = 0; j < n; j++) {
|
|
|
|
|
a += b * (int) Math.pow(2, j);
|
|
|
|
|
System.out.print(a + " ");
|
|
|
|
|
}
|
|
|
|
|
System.out.println();
|
|
|
|
|
}
|
|
|
|
|
scan.close();
|
|
|
|
|
}
|
|
|
|
|
}
|