In your second loop,
you should be printing the (j-1)th power of 2, not j. Same with third loop.
But you should change the number of spaces printed in the first loop depending on the number of row and therefore the number of digits in the largest value, so that the pyramid will look symmetrical.