$65536$ is the only power of $2$ less than $2^{31000}$ that does not contain the digits $1$, $2$, $4$ or $8$ in its decimal representation.
- 874
-
Not an answer, but relevant since it seems just as counterintuitive at first glance: http://math.stackexchange.com/questions/76342/measure-of-reals-in-0-1-which-dont-have-4-in-decimal-expansion – Desiato Oct 04 '14 at 01:13
-
Since $3/4$ of them end in $2$, $4$, or $8$, and after a while we have lots of digits, once we get past the small powers one can be confident that there will not be a problem. – André Nicolas Oct 04 '14 at 01:27
-
I started typing up an answer in which I was saying that if you look at just the last three digits, you'll find a 1, 2, 4 or 8 in most cases. But if $n \equiv 13, 16, 20, 36, 40, 48, 56, 60, 64, \ldots \mod 1000$, you need to look at more significant digits. Then I started falling asleep, these kinds of problems just don't have the same appeal for me as they once did. – Robert Soupe Oct 04 '14 at 02:10
-
I think Ramanujan noticed this on his way to the bathroom. – Daniel W. Farlow Apr 26 '15 at 23:32
1 Answers
A simple explanation turns on the apparent randomness of the base-$b$ digits of sufficiently large powers of two, in the sense that they tend to behave like random samples. (However, this leaves the apparent randomness unexplained.)
Thus, let $S_k$ denote the multiset of digits appearing in the numeral of $2^k$, and let $n_k$ be their number; i.e., $n_k = \lfloor 1 + k\cdot log_{b}2\rfloor $. If each $S_k$ were a simple random sample, then, for any $K$ and any subset $D\subset \{0,1,...,b-1\}$ (e.g., $D=\{1,2,4,8\}, \ b=10$),
$$\begin{align} P_K &= P(\text{at least one digit from D appears in *every* }S_K, S_{K+1}, S_{K+2},...)\\ &= P\left( \bigcap_{i=K}^\infty C_{i} \right)\\ &= \prod_{i=K}^\infty P(C_{i})\\ &= \prod_{i=K}^\infty(1-q^{n_i}) \end{align} $$
where
$C_i = \{S_i\cap D \ne \oslash\}$,
$q = P(\text{digit } \notin D) = 1 - \frac{|D|}{b}$.
Here are some computed cases (rounded) for $b=10$ and $|D|=4$:
\begin{array}{|c|c|} K & P_K \\ \hline 1&0.002\\ 10&0.304\\ 15&0.575\\ 20&0.780\\ 50&0.998\\ 100&0.999999\\ 200&0.9999999999999 \end{array}
As examples, I've verified that
- with $D=\{1,2,4,8\}$ and $b=10$, a digit from $D$ occurs among the digits of every $2^k$ for the range $17\le k\le 200000$
- with $D=\{1,2,3,4\}$ and $b=10$, a digit from $D$ occurs among the digits of every $2^k$ for the range $4\le k\le 200000$
Therefore, it seems extremely likely that both of these statements are true:
$2^{16}$ is the only power of two that does not contain a digit from $\{1,2,4,8\}$.
$2^3$ is the only power of two that does not contain a digit from $\{1,2,3,4\}$.
NB: These are examples of probably true and unprovable "Dyson statements".
- 15,537