#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const long long LINF = 0x3f3f3f3f3f3f3f3f;
const int MOD = 1e9 + 7;
template <typename T1, typename T2>
inline bool Min(T1 &a, const T2 &b) {
  if (b >= a) return false;
  a = b;
  return true;
}
template <typename T1, typename T2>
inline bool Max(T1 &a, const T2 &b) {
  if (b <= a) return false;
  a = b;
  return true;
}
template <typename T1, typename T2>
inline void Adm(T1 &a, const T2 &b) {
  a = (a + b) % MOD;
  if (a < 0) a += MOD;
}
long long x[100];
int main() {
  int T;
  cin >> T;
  while (T--) {
    long long a, b, m;
    scanf("%I64d%I64d%I64d", &a, &b, &m);
    if (a == b) {
      printf("1 %I64d\n", a);
      continue;
    }
    x[1] = a;
    for (int i = 2; i <= 50; ++i) {
      long long w = (1LL << i - 2);
      x[i] = 1;
      for (int j = 1; j < i; ++j) x[i] += x[j];
      if (x[i] > b) break;
      if (x[i] <= b && x[i] + w * (m - 1) >= b) {
        long long v = (b - x[i]) / w * w;
        for (int j = i; j > 1; --j) x[j] += v, v >>= 1;
        v = b - x[i];
        for (int j = i; j > 2; --j) {
          x[j] += v;
          if (v & 1) ++x[j - 1];
          v >>= 1;
        }
        printf("%d", i);
        for (int j = 1; j <= i; ++j) printf(" %I64d", x[j]);
        putchar('\n');
        goto brk;
      }
    }
    printf("-1\n");
  brk:;
  }
  return 0;
}
