OFFSET
1,3
COMMENTS
A100398 gives terms of continued fractions of harmonic numbers.
For n >= 2, a(n) = the denominator of the ratio equal to the continued fraction made by reversing the order of the terms of the continued fraction of the n-th harmonic number. (The numerator of this ratio is the numerator of the n-th harmonic number, A001008(n).) - Leroy Quet, Dec 24 2006
EXAMPLE
H(6) = 49/20 = 2 +1/(2 +1/(4 +1/2)), so a(6) = numerator of 2 +1/(2 +1/4) = 22/9.
PROG
(PLT Scheme) ;; (harmonic n) is the n-th harmonic sum
;; frac->cf and cf->frac are utility functions that convert fractions to continued fractions and vice versa.
(define (A113123 n)
(cond
[(= n 1) 0]
[else (numerator (cf->frac (reverse (rest (reverse (frac->cf (harmonic n)))))))]))
;; Joshua Zucker, May 08 2006
CROSSREFS
KEYWORD
easy,frac,nonn
AUTHOR
Leroy Quet, Oct 14 2005
EXTENSIONS
More terms from Joshua Zucker, May 08 2006
STATUS
approved