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; internal format)
OFFSET

1,3

LINKS

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}] (from Robert G. Wilson v (rgwv(AT)rgwv.com), Jun 03 2005)

CROSSREFS

Sequence in context: A021801 A102513 A100116 * A085801 A023843 A153990

Adjacent sequences:  A107918 A107919 A107920 * A107922 A107923 A107924

KEYWORD

nonn

AUTHOR

Zak Seidov (zakseidov(AT)yahoo.com), Jun 02 2005

EXTENSIONS

Edited and extended by Robert G. Wilson v (rgwv(AT)rgwv.com), Jun 03 2005

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

Content is available under The OEIS End-User License Agreement .

Last modified February 17 03:20 EST 2012. Contains 205978 sequences.