17
225
log10(225)2 equals 5.5327625985087111
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
16(2^n)(10)(2^n)=160[2^(2n)]=160(4^n)
Formula for sum of first natural number = n(n+1)/2 , here n=225 so, answer is 225(225+1)/2 = 25425
17
225
log10(225)2 equals 5.5327625985087111
225.
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
n= sqrt 225 = 15
225. Anything to the power of 0 is 1. 225/1 is 225
3^n+2+3^n = 6^n+2 *'to the power of' can be represented with this symbol ^ .
16(2^n)(10)(2^n)=160[2^(2n)]=160(4^n)
Assume 2^k < k! for all n > k here n > 2, then 2^n = 2^(n - 1)*2 < (n-1)! * n = n! Done. Connie and John
1 x 225, 3 x 75, 5 x 45, 9 x 25, 15 x 15.