Extend the pattern to complete the table Input 1234567 output 1 8 27 ? ? ? ?

It's the number cubed..1^3=1, 2^3=8, 3^3=27..now you can finish the pattern.