I did not understand what this question want to say,and i don’t understand how to start the code
How to start the code
Lets see a sample example -
For the input:
3
2
Then we need to print first 3 terms starting from n = 1 in the given series (3n + 2) which are not divisible by 2.
In that case nums starting from n = 1 are 5, 8, 11, 14, 17, 23… and so on. but we need to print only those numbers which are not divisible by 2, which are, 5, 11, 17.
So this is the sample example.
You cab refer to this code here
If you have any more query, lemme know else close the doubt by marking it resolved.