#include <bits/stdc++.h>
using namespace std;
long long ans[60];
int main() {
  long long t, a, n, m, b, v, xmin, xmax, act, sum, i, vmi;
  cin >> t;
  while (t--) {
    cin >> a >> b >> m;
    if (a == b) {
      cout << "1 " << a << '\n';
      continue;
    }
    for (n = 2; n <= 50; n++) {
      v = ((1ll) << (n - 2));
      xmin = v * a + v;
      xmax = v * a + v * m;
      if (xmin > b) {
        n = 51;
        break;
      }
      if (b <= xmax) {
        act = xmax;
        ans[1] = a;
        sum = ans[1];
        for (i = 2; i <= n; i++) {
          v = ((1ll) << (max(n - i - 1, 0ll)));
          vmi = m - (act - b) / v;
          vmi = max(vmi, 1ll);
          ans[i] = sum + vmi;
          sum = sum + ans[i];
          act -= (m - vmi) * v;
        }
        if (i <= n || ans[n] != b) continue;
        cout << n << ' ';
        for (i = 1; i <= n; i++) cout << ans[i] << ' ';
        cout << '\n';
        break;
      }
    }
    if (n == 51) {
      cout << -1 << '\n';
    }
  }
  return 0;
}
