OFFSET
1,2
COMMENTS
a(n+1)/a(n) is approximately log_2(10) = A020862. - André Engels, Apr 01 2021
LINKS
Code Golf StackExchange, Length of Binary as Base 10 [OEIS A242347], coding challenge started Oct 28 2022.
FORMULA
EXAMPLE
a(3) = 4 because 1010 has 4 decimal digits.
PROG
(Python)
A242347_list, l = [1], 2
for _ in range(10):
....l = int(bin(l)[2:])
....A242347_list.append(len(str(l))) # Chai Wah Wu, Dec 26 2014
(PARI) a242347(n) = {my (k=2, d=digits); while(n--, k=fromdigits(d(k, 2))); #d(k)} \\ Hugo Pfoertner, Nov 04 2022
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
J. Lowell, May 11 2014
EXTENSIONS
a(1), a(18)-a(20) from Chai Wah Wu, Dec 26 2014
STATUS
approved