0% found this document useful (0 votes)
35 views1 page

Terms of AP

The document discusses printing the first x terms of the series 3N + 2 that are not multiples of 4. It provides an input format of an integer x and output format of the terms separated by spaces. It also provides sample inputs and outputs and constraints of 1 <= x <= 1000.

Uploaded by

vachna ram
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views1 page

Terms of AP

The document discusses printing the first x terms of the series 3N + 2 that are not multiples of 4. It provides an input format of an integer x and output format of the terms separated by spaces. It also provides sample inputs and outputs and constraints of 1 <= x <= 1000.

Uploaded by

vachna ram
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Terms of AP

Write a program to print first x terms of the series 3N + 2 which are not multiples
of 4.
Input format :
Integer x
Output format :
Terms of series (separated by space)
Constraints :
1 <= x <= 1,000
Sample Input 1 :
10
Sample Output 1 :
5 11 14 17 23 26 29 35 38 41
Sample Input 2 :
4
Sample Output 2 :
5 11 14 17

You might also like