OFFSET
1,2
FORMULA
a(n>2)=-1/a(n-1)+1/a(n-2), a(1)=1, a(2)=2, a(n)->-(-1)^n sqrt(2).
EXAMPLE
a(3)=-1/a(2)+1/a(1)=-1/2+1=1/2, therefore in the sequence, 3rd term is 1.
CROSSREFS
KEYWORD
sign,frac
AUTHOR
Zak Seidov, Oct 24 2002
STATUS
approved