Hey, this question is from a practice exam...
A triangular pile is a stack contructed from equal-sized balls. It has a triangular base (first layer) and a single ball in its top-most layer. The number of layers depends on the total number of balls used. For example, the triangular pile shown...