Pyramid No CSS

Note: Uses "& n b s p" character which for some reason centers the pyramid. The formula space.repeat((row-i)) + star.repeat(i) should actually result in a right angled triangle with a flat right side.

I need to redo using the correct formula space.repeat(( row-i)/2) + star.repeat(i) + space.repeat((row-i)/2) .
I may also have to start with 1 star and increment by 2 stars per line, to account for the problem of "half" a space on lines with even number of characters.