To find N term for nst

mam i am unable to find the n term for the number of stars which is to be printed.

you can start with

int nst = (n/2) + 1;