#include <bits/stdc++.h>
using namespace std;
int main() {
  int q;
  cin >> q;
  unsigned long long a, b, m, n, pw, k, r, val;
  while (q--) {
    cin >> a >> b >> m;
    if (a == b) {
      cout << "1 " << a << endl;
      continue;
    }
    pw = 1;
    for (n = 2; n <= 50; ++n) {
      if (pw * (a + 1) <= b and b <= pw * (a + m)) {
        cout << n << " ";
        k = b / pw - a;
        r = b % pw;
        val = a;
        for (int i = 0; i < n; ++i) {
          cout << a << " ";
          a = val + k;
          if (n - i - 3 >= 0) a += (r >> (n - i - 3)) & 1ll;
          val += a;
        }
        cout << endl;
        break;
      }
      pw *= 2ull;
    }
    if (n == 51) cout << -1 << endl;
  }
  return 0;
}
