#include <bits/stdc++.h>
using namespace std;
int q, _c;
long long a, b, m, c[105];
int main() {
  for (scanf("%d", &q); q; q--) {
    _c = 0;
    memset(c, 0, sizeof(c));
    scanf("%I64d%I64d%I64d", &a, &b, &m);
    if (a == b) {
      printf("1 %I64d\n", a);
      continue;
    }
    long long l = a + 1, r = a + m;
    int n = 2;
    while (r < b) {
      l <<= 1;
      r <<= 1;
      n++;
    }
    if (l <= b && b <= r) {
      long long left = b - ((a + 1) << (n - 2)), sum = 0;
      for (int i = 2; i < n; i++) {
        if (sum + ((m - 1) << (n - i - 1)) < left) {
          sum += (m - 1) << (n - i - 1);
          c[i] = m - 1;
        } else {
          long long L = 0, R = m, mid;
          while (L < R - 1) {
            mid = (L + R) >> 1;
            if (sum + (mid << (n - i - 1)) <= left)
              L = mid;
            else
              R = mid;
          }
          sum += (L << (n - i - 1));
          c[i] = L;
        }
      }
      if (left > sum) c[n] = left - sum;
      printf("%d %I64d", n, a);
      sum = a;
      for (int i = 2; i <= n; i++) {
        printf(" %I64d", sum + 1 + c[i]);
        sum += sum + 1 + c[i];
      }
      puts("");
    } else {
      puts("-1");
    }
  }
  return 0;
}
