how to do a pyramid: ascending and descending

how to do a pyramid: ascending and descending