OFFSET
1,5
COMMENTS
A100398 gives terms of continued fractions of harmonic numbers.
EXAMPLE
H(6) = 49/20 = 2 +1/(2 +1/(4 +1/2)), so a(6) = denominator 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 (A113124 n)
(cond
[(= n 1) 1]
[else (denominator (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