#include <bits/stdc++.h>
using namespace std;
long long dp[55];
void p_2() {
  dp[0] = 1;
  for (int i = 1; i <= 50; i++) dp[i] = dp[i - 1] * 2;
}
int main() {
  ios_base ::sync_with_stdio(false);
  int testcase;
  cin >> testcase;
  long long a, b, m;
  vector<long long> vec;
  long long last;
  long long dif;
  long long add[55];
  int x;
  long long temp;
  p_2();
  while (testcase--) {
    cin >> a >> b >> m;
    if (a == b) {
      cout << 1 << ' ' << a << endl;
      continue;
    } else if (b - a <= m) {
      cout << 2 << ' ' << a << ' ' << b << endl;
      continue;
    }
    vec.clear();
    memset(add, 0, sizeof add);
    vec.push_back(a);
    vec.push_back(a + 1);
    last = a + 1;
    while (last <= b) {
      last *= 2;
      if (last > b) break;
      vec.push_back(last);
    }
    dif = b - last / 2;
    for (int i = 1; i < vec.size() - 1; i++) {
      x = vec.size() - i - 2;
      long long temp = dp[x];
      add[i] += min((dif / temp), m - 1);
      if (min(dif / temp, m - 1) != 0) dif -= (min(dif / temp, m - 1) * temp);
      if (dif == 0) break;
    }
    if (dif != 0) {
      if (dif <= m - 1)
        add[vec.size() - 1] = dif;
      else {
        cout << -1 << endl;
        continue;
      }
    }
    cout << vec.size() << ' ';
    cout << vec[0] << ' ' << vec[1] + add[1] << ' ';
    last = add[1];
    for (int i = 2; i < vec.size(); i++) {
      cout << vec[i] + last + add[i] << ' ';
      last *= 2;
      last += add[i];
    }
    cout << endl;
  }
  return 0;
}
