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 thefollowing series You are given q queries in the form of a,

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!