There is a contest! | В настоящий момент идёт турнир. Некоторая информация и функции сервера недоступны до его окончания.
|
|
imesecan | Feb.26.2011 at 08:31:58 PM | |
0 | All powers of 2 are even numbers except 2^0=1;
Thus, we can continuously divide the number by two while it's greater than 1, on any stage, if it becomes an odd number then we can say that it's not a power of two.
If it becomes equal to 1 in the end, it's a power of 2.
|
imesecan | Oct.27.2013 at 10:19:53 PM | |
1 | Post is deleted
|
|