OFFSET
0,26
COMMENTS
I conjecture that any value x = 0, 1, 2, ... occurs only a finite number of times N(x) = 34, 34, 24, 34, 39, 34, 35, 34, 35, 32, 33, 31, ... in this sequence, for the last time at well defined indices i(x) = 153, 139, 226, 237, 308, 386, 413, 506, 461, 578, 644, 732, 857, 657, 743, 768, 784, 848, 906, ... - M. F. Hasler, Jul 09 2025
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..1000
EXAMPLE
2^5 = 32 so a(5)=1.
MATHEMATICA
Table[ Count[ IntegerDigits[2^n], 3], {n, 0, 100} ]
PROG
(PARI) a(n) = #select(x->(x==3), digits(2^n)); \\ Michel Marcus, Jun 15 2018
(Python)
def A065714(n):
return str(2**n).count('3') # Chai Wah Wu, Feb 14 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Benoit Cloitre, Dec 04 2001
EXTENSIONS
More terms from Robert G. Wilson v, Dec 07 2001
STATUS
approved
