#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cout.tie(0);
  cin.tie(0);
  long long q;
  cin >> q;
  while (q--) {
    long long a, b, r;
    cin >> a >> b >> r;
    if (a == b) {
      cout << "1 " << a << "\n";
      continue;
    }
    long long tmp = -1;
    long long make;
    for (long long i = 2; i <= 50; i++) {
      long long sum = b - a * (pow(2, i - 2));
      if (sum <= 0) break;
      long long mx = r * pow(2, i - 2);
      long long mn = 1 * pow(2, i - 2);
      if (sum >= mn && sum <= mx) {
        tmp = i;
        make = sum;
        break;
      }
    }
    if (tmp == -1) {
      cout << "-1\n";
      continue;
    }
    vector<long long> ans;
    ans.push_back(a);
    vector<long long> br;
    long long k = tmp - 3;
    if (k == -1) k++;
    for (long long i = 0; i < tmp - 1; i++) {
      if (i == tmp - 2) {
        br.push_back(make);
        continue;
      }
      if (make - r * pow(2, k) >= pow(2, k)) {
        br.push_back(r);
        make -= r * pow(2, k);
      } else {
        br.push_back(1);
        make -= pow(2, k);
      }
      k--;
      if (k == -1) k++;
    }
    cout << tmp << " ";
    cout << a << " ";
    long long cum_sum = a;
    for (long long i = 0; i < tmp - 1; i++) {
      cout << cum_sum + br[i] << " ";
      cum_sum += cum_sum + br[i];
    }
    cout << "\n";
  }
}
