Answer: 512 grains on the 10th square. 1023 total grains on all 10 squares.
Explanation:
Two ways: add the number of grains on each square
1+2+4+8+16+32+64+128+256+512 = 1023
Or set up an equation using sigma: Σ
Put 10 on top and n=1 on the bottom. Next to it, put 2^(n-1).