Power of 2 = 2ⁿ (n = Integer ≥ 0) → 1, 2, 4, 8, 16, 32, 64... ใน Binary มีแค่ Bit เดียวที่เป็น 1: 1 (1), 10 (2), 100 (4), 1000 (8)... วิธี 1: Bitwise Operation (Fastest) 0 && (x & (x - 1)) == 0; } Logic: x & (x-1) จะเป็น 0 ก็ต่อเมื่อ x มี Bit 1 อยู่ตัวเดียว วิธี 2: Loop Division bool IsPowerOfTwo(u