RNGdle

GuidePowers of two

Powers Of Two

A power of two is an integer of the form 2ⁿ for some integer n ≥ 0. The sequence begins 1, 2, 4, 8, 16, …. RNGdle treats 1 (= 2⁰) as valid.

20 values in 0–1,000,000

Formula

n = 2ᵏ (k ≥ 0), equivalently n > 0 and (n & (n − 1)) = 0.

How to check

Reject non-positive integers. Then test whether clearing the lowest set bit leaves zero: n & (n − 1) === 0.

Example

65,536

65536 = 2¹⁶, and 65536 & 65535 = 0, so it is a power of two. 65535 fails the same bit test.

Look up EP for this number in the calculator.

In RNGdle

Powers of two are rare inside a million possibilities — only twenty values fit — and the Power of Two badge pays a large EP hit when your daily roll lands on one.

  • Power of Two — A power of 2 (2ⁿ). (+5,000,005 EP)

Full list in range

12481632641282565121,0242,0484,0968,19216,38432,76865,536131,072262,144524,288

FAQ

What are powers of two?
Powers of two are numbers 1, 2, 4, 8, 16… equal to 2 raised to a non-negative integer exponent.
Is 1 a power of two?
Yes. 1 = 2⁰, and RNGdle’s Power of Two rule includes it.
Which powers of two fit in RNGdle’s range?
From 2⁰ = 1 through 2¹⁹ = 524288. 2²⁰ = 1,048,576 exceeds the 1,000,000 roll cap.