HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Forums > Discussion of problems > topic:


Problem "Power of two"

There is a contest!

В настоящий момент идёт турнир. Некоторая информация и функции сервера недоступны до его окончания.

imesecanFeb.26.2011 at 08:31:58 PM
0All 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.

imesecanOct.27.2013 at 10:19:53 PM
1Post is deleted


www.contester.ru