#include <bits/stdc++.h>
using namespace std;
long long int power(long long int a, long long int b) {
  if (b == 0) return 1;
  long long int p = power(a, b / 2);
  if (b % 2 == 0)
    return p * p;
  else
    return a * p * p;
}
void shikhar7s(long long int cas) {
  long long int a, b, m, i, x, c, l, r;
  cin >> a >> b >> m;
  if (a == b) {
    cout << "1 " << a << "\n";
    return;
  }
  l = b / (a + m);
  r = b / (a + 1);
  for (i = 0; i < 55; i++) {
    c = power(2, i);
    if (c >= l && c <= r) {
      if (!(c == l && b % (a + m) != 0)) break;
    }
  }
  if (i == 55) {
    cout << -1 << "\n";
    return;
  }
  x = i + 1;
  b -= (c * a);
  vector<long long int> add(x, b / c);
  b %= c;
  vector<long long int> bi;
  while (b) {
    bi.push_back(b % 2);
    b /= 2;
  }
  long long int j = x - 2, bis = bi.size();
  for (i = 0; i < bis; i++) {
    add[j] += bi[i];
    j--;
  }
  cout << x + 1 << " " << a << " ";
  long long int s = a;
  l = a;
  for (i = 0; i < add.size(); i++) {
    s += add[i];
    cout << s << " ";
    s += l;
    l = s;
  }
  cout << "\n";
}
signed main() {
  std::ios_base::sync_with_stdio(false);
  long long int t = 1;
  cin >> t;
  long long int cas = 1;
  while (cas <= t) {
    shikhar7s(cas);
    cas++;
  }
  return 0;
}
