OFFSET
1,1
COMMENTS
1
MATHEMATICA
a[n_]:=IntegerExponent[10^n-1, 3]; Array[a, 90] (* Stefano Spezia, Oct 28 2023 *)
PROG
(PARI) a366922(n) = valuation(10^n-1, 3)
(Python)
def A366922(n):
c = 0
a, b = divmod(10**n-1, 3)
while b == 0:
a, b = divmod(a, 3)
c += 1
return c # Chai Wah Wu, Oct 29 2023
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Hugo Pfoertner, Oct 28 2023
STATUS
approved