Question: We use the integers a, b, and n to create the following series You are given q queries in the form of a, b, and


We use the integers a, b, and n to create the following series You are given q queries in the form of a, b, and n. For each query, print the series corresponding to the given a, b, and n values as a single line of n space-separated integers. Input Format The first line contains an integer, q, denoting the number of queries. Each line i of the q subsequent lines contains three space-separated integers describing the respective a, bi, and ni values for that query. Constraints 0S9500 O Sa,b 50 13ns15 Output Format For each query, print the corresponding series on a new line. Each series must be printed in order as a single line of n space- separated integers. Sample Input 2 0 2 10 5 3 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
