Double the lights on each floor.
The second layer is 2X.
The third floor is 4X.
Fourth layer ......
The formula in the list is:
X+2 * X+4 * X+8 * X+ 16 * X+32 * X+64 * X = 38 1
127*X=38 1
X=3
Tower top 64 * X.
Indeed
3*64= 192 lamp