My logic is not correct

Hey @lokeshverma764
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.
If you have any more query, lemme know else close the doubt by marking it resolved.
Happy Coding!

Mam I understand the problem but i have issue in my logic it give me right answer on every input.May you please fix my logic error

@lokeshverma764
you have to print n1 nos. here is your corrected code