Computing the n-th secant number Sn

See BC code based on Algorithm 4.5, Modern computer arithmetic by Richard Brent and Paul Zimmermann.
If An is the number of zigzag permutations on {1,2,…,n}, then Sn = A2n+1 for n ≥ 0.

Enter n (0 ≤ n ≤ 1000):

Last modified 20th November 2022
Return to main page