Now what do you think the underlying mathematical pattern is?
The top and bottom should be easy with a for loop and I see that you already have the top and bottom.
Try writing the other lines as numbers. Each line has one less space. Then try writing a fer loop that can mimic the numbers you wrote down. You are really close already