Can someone explain to me "to the power of"? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can someone explain to me "to the power of"?

I'm in Grade 6, and have never gotten the hang of numbers to the power of another. Can someone help? I'm using Ruby and I don't understand the 2**5. https://code.sololearn.com/cTHFD85H9Afy/?ref=app

18th May 2017, 3:27 AM
Rushy
Rushy - avatar
6 Answers
+ 8
@Rushy you can put it like that. 8 to the power of 3 is 8*8*8 8 to the power of 4 is 8*8*8*8 Please refer: https://www.mathsisfun.com/exponent.html
18th May 2017, 3:51 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
Yes. 2**3 is 2x2x2 = 4×2 = 8 It's basic math.
18th May 2017, 3:50 AM
Chandra Wibowo
Chandra Wibowo - avatar
0
2**5 is the same as: 2^5 or 2*2*2*2*2 or 2×2×2×2×2
18th May 2017, 3:31 AM
Chandra Wibowo
Chandra Wibowo - avatar
0
@Chandra Wibowo Like repetitive multiplication?
18th May 2017, 3:46 AM
Rushy
Rushy - avatar
0
x "to the power of" y means you are multiplying x by itself y times. Thus, 2 to the power of 5, or 2**5 in Ruby, means multiply 2 by itself 5 times = 2*2*2*2*2 = 32. Count the number of 2's you see below: 2 * 2 = 4 4 * 2 = 8 8 * 2 = 16 16 * 2 = 32
18th May 2017, 3:50 AM
Joseph P French
Joseph P French - avatar
0
Thank you so much for all your responses. Thanks for the link, Chandra, too. I know what squared numbers are. It really clarified things.
18th May 2017, 3:56 AM
Rushy
Rushy - avatar