#include <bits/stdc++.h>
using namespace std;
long long arr[55];
long long r[55];
long long bin[55];
void init() {
  arr[0] = 0;
  arr[1] = 0;
  arr[2] = 1;
  for (int i = 3; i <= 50; ++i) {
    arr[i] = arr[i - 1] * 2;
  }
}
int main() {
  init();
  int n;
  cin >> n;
  while (n--) {
    long long a, b, c;
    cin >> a >> b >> c;
    if (a == b) {
      cout << 1 << " " << b << endl;
      continue;
    }
    int i;
    for (i = 2; i <= 50; ++i) {
      if (b - ((i - 1) * (a + 1) - a >= 0)) {
        long long add = b - a * arr[i];
        long long min_add = b / arr[i] - a;
        if (min_add <= c && min_add >= 1) {
          long long del = (b - a * arr[i]) - arr[i] * min_add;
          if (del > 0 && min_add + 1 > c) {
            continue;
          }
          memset(bin, 0, sizeof(bin));
          for (int j = i - 2; j > 0; --j) {
            bin[j] = del % 2;
            del /= 2;
          }
          r[0] = a;
          cout << i;
          cout << " " << a;
          for (int j = 1; j < i; ++j) {
            r[j] = 0;
            for (int k = 0; k < j; ++k) {
              r[j] += r[k];
            }
            if (i - j > del) {
              r[j] += min_add + bin[j];
            } else {
              r[j] += min_add + bin[j];
            }
            cout << " " << r[j];
          }
          cout << endl;
          break;
        }
      }
    }
    if (i > 50) {
      cout << "-1" << endl;
    }
  }
}
