#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int q;
  cin >> q;
  for (int i = 0; i < q; i++) {
    long long a, b, m;
    cin >> a >> b >> m;
    if (a == b) {
      cout << 1 << " " << a << "\n";
      continue;
    }
    for (int j = 0; j < 1000; j++) {
      long long lb = (1ll << j) * a + (1ll << j) * 1;
      long long ub = (1ll << j) * a + (1ll << j) * m;
      if (lb > b) {
        cout << -1 << endl;
        break;
      }
      if (lb <= b && ub >= b) {
        cout << j + 2 << " ";
        cout << a << " ";
        int len = j;
        for (int k = 0; k <= j; k++) {
          long long base = (1ll << len) * a;
          long long rem = b - base;
          long long r = rem / (1ll << len);
          while (len && (1ll << (len - 1)) * (a + (a + r)) +
                                (1ll << (len - 1)) * (r + 1) <=
                            b)
            r++;
          cout << a + r << " ";
          a = a + (a + r);
          len--;
        }
        cout << "\n";
        break;
      }
    }
  }
}
