user: A four-layer pyramid is being built with each layer having three times as many sandstone blocks as the layer above it. The top layer is a single block. How many sandstone blocks are in the pyramid? Let's think step by step and output the final answer after "####".
Answer: 40