Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A107921
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
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, 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; listen)
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 this_sequence A085801 A023843 A153990

Adjacent sequences: A107918 A107919 A107920 this_sequence 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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research