OFFSET
1,2
COMMENTS
The simple continued fraction expansion of tan(1/4) + sec(1/4) equals [1; 3, 2, 11, 2, 19, 2, 27, 2, ..., 8*k + 3, 2, ...].
Related quasi-periodic continued fraction expansions:
sec(1/4) - tan(1/4) = [0; 1, 3, 2, 11, 2, 19, 2, 27, 2, ..., 8*k + 3, 2, ...].
4*(tan(1/4) + sec(1/4)) = [5; {6, 1, 4*k+2, 8, 4*k+4, 1}, ...], k >= 0.
2*(tan(1/4) + sec(1/4)) = [2; 1, {1, 2, 1, 8*k+5, 4, 8*k+9}, ...], k >=0
(1/2)*(tan(1/4) + sec(1/4)) = [0; 1, 1, {8*k+1, 4, 8*k+5, 1, 2, 1}, ...], k >= 0
(1/4)*(tan(1/4) + sec(1/4)) = [0; 3, 9, {4*k+2, 1, 6, 1, 4*k+4, 8}, ...], k >= 0.
LINKS
FORMULA
Constant c = tan(1/8 + Pi/4).
c = exp(arctanh(sin(1/4))).
c = -i*(exp(i/4) + i)/(exp(i/4) - i), where i = sqrt(-1).
c = (cos(1/8) + sin(1/8))/(cos(1/8) - sin(1/8)) = sqrt((1 + sin(1/4))/(1 - sin(1/4))).
(c - 1)/(c + 1) = tan(1/8).
c - 1/c = 2*tan(1/4).
c + 1/c = 2*sec(1/4).
c = exp( Integral_{x = 0..1/4} sec(x) dx).
c = 5/4 + Integral_{x = 0..1/4} sin(x)/(1 - sin(x)) dx.
EXAMPLE
1.2874269452054219109029315844780560045853817799817751773978615048 ...
MAPLE
MATHEMATICA
First[RealDigits[Tan[1/4] + Sec[1/4], 10, 100]] (* Paolo Xausa, Feb 16 2026 *)
PROG
(PARI) tan(1/4)+1/cos(1/4) \\ Charles R Greathouse IV, Apr 24 2026
CROSSREFS
KEYWORD
AUTHOR
Peter Bala, Jan 02 2026
STATUS
approved
