A238938 Powers of 2 without the digit '0' in their decimal expansion.
1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 8192, 16384, 32768, 65536, 262144, 524288, 16777216, 33554432, 134217728, 268435456, 2147483648, 4294967296, 8589934592, 17179869184, 34359738368, 68719476736, 137438953472, 549755813888, 562949953421312, 2251799813685248, 147573952589676412928
Offset: 1
Examples
256 = 2^8 is in the sequence because 256 has a 2, a 5 and a 6 but no 0's. 512 = 2^9 is also in because it has a 1, a 2 and a 5 but no 0's. 1024 = 2^10 is not in the sequence because it has a 0.
Links
- Daniel Mondot, Table of n, a(n) for n = 1..36
- M. F. Hasler, Zeroless powers, OEIS wiki, Mar 07 2014
Crossrefs
Programs
-
Mathematica
Select[2^Range[0, 127], DigitCount[#, 10, 0] == 0 &] (* Alonso del Arte, Mar 07 2014 *)
-
PARI
for(n=0,99,vecmin(digits(2^n))&& print1(2^n","))
Formula
a(n) = 2^A007377(n).
Extensions
'fini' keyword removed as finiteness is only conjectured by Max Alekseyev, Apr 10 2019
Comments