Getting the shape of a pyramid is going to be a bit tough, as the size of the characters is different for different characters in most fonts. Using a font with equal size per character would make it easier.

How do you intend to display this, and how many rows? There has to be some control that the string of numbers is displayed on, such as a series of labels, or a listbox, or some such.