OFFSET
1,2
EXAMPLE
1/a(1)+1/a(2)+1/a(3)+1/a(4) = (1+1/2+1/8+1/10) which continued fraction is {1, 1, 2, 1, 1, 1, 3} and 1+1+2+1+1+1+3 = 10 = 4*5/2 the fourth triangular number.
PROG
(PARI) s=1; t=1; for(n=2, 22, s=s+1/t; while(abs(n*(n+1)/2+1-sum(i=1, length(contfrac(s+1/t)), component(contfrac(s+1/t), i)))>0, t++); print1(t, ", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Jun 10 2002
EXTENSIONS
More terms from Lambert Klasen (lambert.klasen(AT)gmx.de), Dec 18 2004
STATUS
approved