OFFSET
1,2
EXAMPLE
a(1)=1, a(2)=10 as (1/3 + 3/1) = 10/3, a(3)=31 as 1/5 + 3/3 + 5/1 = 31/5.
PROG
(Rexx)
numeric digits 100; do N = 1 to 22; X = 1; do K = 1 to N; X = X*(2*K-1); end K; Y = 0; do K = 1 to N; Y = Y +(2*K-1)*X/(2*N-(2*K-1)); end K; say Y / GCD(X, Y); end; N
CROSSREFS
KEYWORD
nonn,frac,easy
AUTHOR
Amarnath Murthy, May 06 2001
EXTENSIONS
Corrected and extended by Frank Ellermann
STATUS
approved