On Windows, you can type them by Alt-codes :
http://www.usefulshortcuts.com/alt-codes/maths-alt-codes.php
- make sure NumLock is on
- while holding down Alt-key, type the corresponding Alt-code using the numbers on the numeric keypad (not the ordinary numbers above keys q..p)
Alt 252 ⁿ Power n
Alt 0185 ¹ To the power of 1
Alt 0178 ² squared
Alt 0179 ³ cubed
Or else, on any system, cut and paste them from that or similar webpage.