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!)
A349474 a(n) is the length of the continued fraction of the harmonic mean of the divisors of n. 6
1, 2, 2, 4, 3, 1, 3, 3, 2, 3, 3, 4, 3, 2, 2, 7, 3, 4, 3, 3, 5, 3, 3, 2, 6, 3, 4, 1, 3, 2, 3, 2, 3, 4, 3, 8, 3, 4, 5, 4, 3, 2, 3, 2, 3, 4, 3, 5, 6, 4, 3, 4, 3, 4, 2, 5, 5, 7, 3, 3, 3, 5, 7, 7, 3, 3, 3, 3, 3, 3, 3, 4, 3, 5, 7, 4, 4, 4, 3, 4, 6, 6, 3, 2, 4, 6, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(n) = 1 if and only if n is a harmonic number (A001599).
a(n) <= 2 if and only if n is in A348865.
LINKS
EXAMPLE
a(1) = 1 since the harmonic mean of the divisors of 1 is 1 and its continued fraction has 1 element, {1}.
a(2) = 2 since the harmonic mean of the divisors of 2 is 4/3 = 1 + 1/3 and its continued fraction has 2 elements, {1, 3}.
a(4) = 4 since the harmonic mean of the divisors of 4 is 12/7 = 1 + 1/(1 + 1/(2 + 1/2)) and its continued fraction has 4 elements, {1, 1, 2, 2}.
MATHEMATICA
a[n_] := Length @ ContinuedFraction[DivisorSigma[0, n] / DivisorSigma[-1, n]]; Array[a, 100]
CROSSREFS
Row length of A349473.
Sequence in context: A252040 A084896 A011388 * A105114 A166284 A098086
KEYWORD
nonn
AUTHOR
Amiram Eldar, Nov 19 2021
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 April 16 12:05 EDT 2024. Contains 371711 sequences. (Running on oeis4.)