#!/bin/python3

import math
import os
import random
import re
import sys

# Complete the stones function below.
def stones(n, a, b):
    x = []
    l = 0
    h = n-1
    for i in range(n):
        temp = a*h + b*l
        x.append(temp)
        l+=1
        h-=1
    x = list(set(x))
    x.sort()
    return x

if __name__ == '__main__':
    fptr = open(os.environ['OUTPUT_PATH'], 'w')

    T = int(input())

    for T_itr in range(T):
        n = int(input())

        a = int(input())

        b = int(input())

        result = stones(n, a, b)

        fptr.write(' '.join(map(str, result)))
        fptr.write('\n')

    fptr.close()


8624f4f91c26bfc8f1b8503b6a74ea9955be7641
<mask token>

<mask token>


def stones(n, a, b):
    x = []
    l = 0
    h = n - 1
    for i in range(n):
        temp = a * h + b * l
        x.append(temp)
        l += 1
        h -= 1
    x = list(set(x))
    x.sort()
    return x


<mask token>

<mask token>


def stones(n, a, b):
    x = []
    l = 0
    h = n - 1
    for i in range(n):
        temp = a * h + b * l
        x.append(temp)
        l += 1
        h -= 1
    x = list(set(x))
    x.sort()
    return x


if __name__ == '__main__':
    fptr = open(os.environ['OUTPUT_PATH'], 'w')
    T = int(input())
    for T_itr in range(T):
        n = int(input())
        a = int(input())
        b = int(input())
        result = stones(n, a, b)
        fptr.write(' '.join(map(str, result)))
        fptr.write('\n')
    fptr.close()

import math
import os
import random
import re
import sys


def stones(n, a, b):
    x = []
    l = 0
    h = n - 1
    for i in range(n):
        temp = a * h + b * l
        x.append(temp)
        l += 1
        h -= 1
    x = list(set(x))
    x.sort()
    return x


if __name__ == '__main__':
    fptr = open(os.environ['OUTPUT_PATH'], 'w')
    T = int(input())
    for T_itr in range(T):
        n = int(input())
        a = int(input())
        b = int(input())
        result = stones(n, a, b)
        fptr.write(' '.join(map(str, result)))
        fptr.write('\n')
    fptr.close()

#!/bin/python3

import math
import os
import random
import re
import sys

# Complete the stones function below.
def stones(n, a, b):
    x = []
    l = 0
    h = n-1
    for i in range(n):
        temp = a*h + b*l
        x.append(temp)
        l+=1
        h-=1
    x = list(set(x))
    x.sort()
    return x

if __name__ == '__main__':
    fptr = open(os.environ['OUTPUT_PATH'], 'w')

    T = int(input())

    for T_itr in range(T):
        n = int(input())

        a = int(input())

        b = int(input())

        result = stones(n, a, b)

        fptr.write(' '.join(map(str, result)))
        fptr.write('\n')

    fptr.close()

