How to solve this pattern using for loop

i am not being able to solve this problem using for loop

see in each row generate a formula for nsp…and in each row there are row number of stars…
so make one for loop for the number of rows…and then in that for loop make two for loops-(one for nsp and other for nst)…try to code and share your code here