Problem series 3n+2

i dont understand where i have to stop printing.