A245852 Powers of 8 without the digit '0' in their decimal expansion.
1, 8, 64, 512, 32768, 262144, 16777216, 134217728, 8589934592, 68719476736, 549755813888, 2251799813685248, 4722366482869645213696, 2417851639229258349412352
Offset: 1
Programs
-
Magma
[8^n: n in [0..3*10^4] | not 0 in Intseq(8^n)];
-
Mathematica
Select[8^Range[0, 2*10^5], DigitCount[#, 10, 0]==0 &]
-
Python
from itertools import count, islice def A245852_gen(): # generator of terms return filter(lambda n:not '0' in str(n),(1<<3*n for n in count(0))) A245852_list = list(islice(A245852_gen(),10)) # Chai Wah Wu, Nov 10 2022
Comments