basic program

to print the series 6 7 12 14 18 21 24 28… and finding its nth term