login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A107921 Smallest positive integer m such that the length of continued fraction for 1/n + Sum_{k=1..m} 1/k is n, or 0 if no such m exists. 0
1, 1, 2, 5, 4, 7, 5, 0, 9, 11, 9, 14, 0, 18, 24, 0, 27, 18, 13, 26, 0, 26, 22, 0, 32, 31, 0, 40, 28, 40, 0, 40, 0, 0, 0, 0, 48, 48, 0, 45, 45, 51, 58, 54, 0, 54, 74, 0, 55, 54, 0, 53, 74, 0, 0, 65, 59, 72, 60, 61, 70, 65, 0, 76, 79, 0, 81, 96, 96, 77, 87, 0, 95, 0, 0, 83, 88, 0, 89, 98 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

LINKS

Table of n, a(n) for n=1..80.

Eric Weisstein's World of Mathematics, Continued Fraction.

EXAMPLE

a(4) = 5 because sum 1/4 + (1/1 +...+1/5)= 38/15 and continued fraction for 38/15 has terms {2,1,1,7} and length 4.

MATHEMATICA

f[n_] := Block[{k = 1}, While[ Length[ ContinuedFraction[1/n + HarmonicNumber[k]]] != n && k < 1000, k++ ]; If[k == 1000, 0, k]]; Table[ f[n], {n, 80}] (* Robert G. Wilson v, Jun 03 2005 *)

CROSSREFS

Sequence in context: A021801 A102513 A100116 * A171760 A085801 A023843

Adjacent sequences:  A107918 A107919 A107920 * A107922 A107923 A107924

KEYWORD

nonn

AUTHOR

Zak Seidov, Jun 02 2005

EXTENSIONS

Edited and extended by Robert G. Wilson v, Jun 03 2005

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 19 05:29 EST 2018. Contains 317333 sequences. (Running on oeis4.)