public static void main(String[] args) {
        /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
    	Scanner sc=new Scanner(System.in);
        int temp = sc.nextInt();
        int a, b,c, sum;

        for (int i = 0; i < temp;i++)
            {
            a = sc.nextInt();
            b = sc.nextInt();
            c = sc.nextInt();
            for(int k=0;k<c;k++){
            sum = formulaResult(a,b,c);
            System.out.println(sum);
            }
            }
    	
    }