-2 to the first power = -2^1. -2^1 = -2*1. -2*1 = -2. The answer is negative two.
Chat with our AI personalities
It is: 3-1*3-2 = 1/27
8. Answer: the power of 1 of 8 is simply 8. Who doesn't know that!
14 = ?. This question requires some math skills. Okay, First of all, this requires imaginary numbers. You need to replace 1 with i. i = an imaginary number. So if 1 to the 4th power means, 1 to itself four times, replace one with an imaginary number. so i to the 4th power = x. x = i to the 4th power. Change i to the 4th power, to 2i to the 2nd power. 2i to the 2nd power = x. So change that to i to the 1st power. So i to the 1st power = 1/2x. Now you can solve this by isolating x. You multiply both sides by 1/2. Now you will get the answer, which is 1/2i to the 1st power. the answer is, 2 and 1/2i.
The one line expression is: ((0 != n) && !(n & n-1)) example: int main () { for (int n = 0; n <= 1000001; ++n) { if ((0 != n) && !(n & n-1)) cout << n << " is a power of 2" << endl; } return 0; } will produce: 1 is a power of 2 2 is a power of 2 4 is a power of 2 8 is a power of 2 16 is a power of 2 32 is a power of 2 64 is a power of 2 128 is a power of 2 256 is a power of 2 512 is a power of 2 1024 is a power of 2 2048 is a power of 2 4096 is a power of 2 8192 is a power of 2 16384 is a power of 2 32768 is a power of 2 65536 is a power of 2 131072 is a power of 2 262144 is a power of 2 524288 is a power of 2
-100