OFFSET
0,1
COMMENTS
The simple continued fraction expansion of tan(2) - sec(2) = [0; 4, {1, 3*k+1, 2, 3*k+2, 1, 12*k+16}], where k >= 0 in the quasi-period of length 6.
Related simple continued fraction expansions:
-(tan(2) + sec(2)) = [4; {3*k+1, 2, 3*k+2, 1, 12*k+16}]. See A100261.
2*(tan(2) - sec(2)) = [0; 2, 3, 2, 2, {48*k+34, 1, 3*k+1, 1, 2, 1, 3*k+2, 2, 12*k+14, 2, 3*(k+1), 1, 2, 1, 3*k+3, 1}], where k >= 0 in the quasi-period of length 16.
(1/2)*(tan(2) - sec(2)) = [0; 9, 5, 1, {2, 12*k+8, 2, 3*k+2, 4, 3*k+2, 1, 48*k+58, 1, 3*k+3, 4, 3*k+4}], where k >= 0 in the quasi-period of length 12.
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..10000
A. J. van der Poorten, Continued fraction expansions of values of the exponential function and related fun with continued fractions, Nieuw Archief voor Wiskunde, Vol. 14 (1996), pp. 221-230 (see Theorem 2).
FORMULA
c: = tan(2) - sec(2) = tan(1 - Pi/4) = -cot(1 + Pi/4) = (tan(1) - 1)/(tan(1) + 1).
c = -i * (exp(2*i) - i)/(exp(2*i) + i), where i = sqrt(-1).
c = -exp(-2*arctanh(tan(1))).
(1 + c)/(1 - c) = tan(1) = A049471.
c - 1/c = 2*tan(2).
c + 1/c = -2*sec(2).
c = - exp( - Integral_{x = 0..2} sec(x) dx ).
EXAMPLE
0.2179580984608619981112942991063836828131033469268628484814451002453003338363042046...
MAPLE
MATHEMATICA
First[RealDigits[Tan[2] - Sec[2], 10, 100]] (* Paolo Xausa, Feb 16 2026 *)
PROG
(PARI) tan(2)-1/cos(2) \\ Charles R Greathouse IV, Apr 24 2026
CROSSREFS
KEYWORD
AUTHOR
Peter Bala, Jan 04 2026
STATUS
approved
