Earlier quoted context omitted.
True. It might also just be that the question hasn't attracted the attention of number theorists, and finding a proof wouldn't be unreasonably difficult to an expert in the field.
Nope, it's not that easy in this case. E.g., Erdős conjectured in 1979 that every power of 2 greater than 256 has a digit '2' in its ternary expansion [0]. This makes sense heuristically, but no methods since then have come close to proving it. Digits of numbers are a wild beast, and they're tough to pin down for a specific sequence. At best, we get statistical results like "almost all sequences of this form have thi…
Powers of 2 with all even digits
41–50 of 123 posts
Re: Powers of 2 with all even digits
#42No additional terms up to 2^(10^10). - Michael S. Branicky, Apr 16 2023 How did he do this?
yeah that's weird - its kind of a pointless comment without an included algorithm or something
for i in range(1, 10**10):
for k in range(1, 5):
s = str(pow(2, i, 10**(10**k)))
if '1' in s or '3' in s or '5' in s or '7' in s or '9' in s:
break
else:
print(2**i)
It's really easily to parallelize, I was able to run it up to 10**8 in about 15min, so you would be able to run it up to 10**10 in a few hours with parallelization.Re: Powers of 2 with all even digits
#43This is remarkable! I always find it fascinating that simple to express properties lack a proof. This is a very simple thing to evaluate and seems like it should be straightforward to establish that 2048 is the highest such power.
Everything about this seems so arbitrary. You look at the powers of an arbitrary number (here, 2), you pick an arbitrary base (here, 10) in which to express those powers, and ask for a random property of its digits (whether they belong to the set {0,2,4,6,8}). Nothing about this question feels natural. I've noticed that random facts often don't have simple proofs.
Re: Powers of 2 with all even digits
#44Earlier quoted context omitted.
I see the difference in wording now, as its not very clear what they meant
Saying “powers of two” is a universal way of denoting 2^n. It’s okay to admit being wrong rather than blaming OEIS for being vague.
Re: Powers of 2 with all even digits
#45Re: Powers of 2 with all even digits
#46Earlier quoted context omitted.
Saying “powers of two” is a universal way of denoting 2^n. It’s okay to admit being wrong rather than blaming OEIS for being vague.
The phrase squared is "powers of two" is much, much more common than you know. I'm part-time substituting as a grade-school teacher. Ask any if they are explaining this difference.
Re: Powers of 2 with all even digits
#47How many powers of 2 have just a single even digit? 2, 4, 8, 16, 32, 512...
I'd conjecture the number of powers of 2 with exactly m even digits is finite for all m.
Re: Powers of 2 with all even digits
#48Earlier quoted context omitted.
yeah that's weird - its kind of a pointless comment without an included algorithm or something
Here's a really dumb algorithm: for i in range(1, 10**10): for k in range(1, 5): s = str(pow(2, i, 10**(10**k))) if '1' in s or '3' in s or '5' in s or '7' in s or '9' in s: break else: print(2**i) It's really easily to parallelize, I was able to run it up to 10**8 in about 15min, so you would be able to run it up to 10**10 in a few hours with parallelization.
Re: Powers of 2 with all even digits
#49It might be finite, but it also has a "fast growing sequence" kind of smell too.
Re: Powers of 2 with all even digits
#50Earlier quoted context omitted.
Here's a really dumb algorithm: for i in range(1, 10**10): for k in range(1, 5): s = str(pow(2, i, 10**(10**k))) if '1' in s or '3' in s or '5' in s or '7' in s or '9' in s: break else: print(2**i) It's really easily to parallelize, I was able to run it up to 10**8 in about 15min, so you would be able to run it up to 10**10 in a few hours with parallelization.
It's not 10^10 ≈ 2^33 though, it's 2^(10^10) = 2^10000000000, or about 9 999 999 967 orders of magnitude more.