login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A366922 a(n) is the exponent of 3 in the prime factorization of 10^n - 1. 2
2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 5, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 5, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 6, 2, 2, 3, 2, 2, 3, 2, 2, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
1
LINKS
FORMULA
a(n) = A007949(10^n - 1).
a(n) = A007949(n) + 2 = A051064(n) + 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
Sequence in context: A082204 A152727 A087159 * A218800 A062502 A141242
KEYWORD
nonn,easy
AUTHOR
Hugo Pfoertner, Oct 28 2023
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 18 08:29 EDT 2024. Contains 375997 sequences. (Running on oeis4.)