#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const int infi = 1147483600;
const long long infl = 1e18 + 5;
const char ENDL = '\n';
const long long MOD = 998244353;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int q;
  cin >> q;
  for (int xx = 0; xx < (int)q; xx++) {
    long long a, b, m;
    cin >> a >> b >> m;
    vector<long long> ans = {a};
    if (a == b) {
      cout << 1 << " " << a << ENDL;
      continue;
    }
    if (b - a >= 1 && b - a <= m) {
      cout << 2 << " " << a << " " << b << ENDL;
      continue;
    }
    int res = -1;
    for (int i = 0; i < (int)49; i++) {
      long long bk = b - (1ll << i) * (a + 1);
      if (bk < 0) break;
      if (0 <= bk && bk <= (1ll << i) * (m - 1)) {
        res = i;
        break;
      }
    }
    if (res == -1) {
      cout << -1 << ENDL;
      continue;
    }
    long long bk = b - (1ll << res) * (a + 1);
    vector<long long> r(res + 1, 1);
    cout << res + 2 << " " << a << " ";
    for (int i = 0; i < (int)res; i++) {
      long long ri = bk / (1ll << (res - 1 - i));
      ri = min(m - 1, ri);
      bk -= (1ll << (res - 1 - i)) * ri;
      r[i] += ri;
    }
    r[res] += bk;
    long long now = a;
    for (int i = 0; i < (int)res + 1; i++) {
      cout << now + r[i] << " ";
      now <<= 1;
      now += r[i];
    }
    cout << ENDL;
  }
}
