中文

Bernoulli数、正切数和正割数的快速计算

组合数学 2021-07-05 v3 离散数学 数据结构与算法 数论

摘要

我们考虑Bernoulli数、正切数(zag)和正割数(zig或Euler数)的计算。特别地,我们给出了渐近快速的算法,用于在 O(n2.(logn)2+o(1))O(n^2.(\log n)^{2+o(1)}) 比特运算内计算前 nn 个这样的数。我们还给出了非常简短的就地算法,用于在 O(n2)O(n^2) 次整数运算内计算前 nn 个正切数或正割数。这些算法极其简单,对于中等大小的 nn 速度很快。它们比Atkinson的算法(用于正切数和正割数)以及Akiyama和Tanigawa的算法(用于Bernoulli数)更快且占用更少空间。

关键词

引用

@article{arxiv.1108.0286,
  title  = {Fast computation of Bernoulli, Tangent and Secant numbers},
  author = {Richard P. Brent and David Harvey},
  journal= {arXiv preprint arXiv:1108.0286},
  year   = {2021}
}

备注

16 pages. To appear in Computational and Analytical Mathematics (associated with the May 2011 workshop in honour of Jonathan Borwein's 60th birthday). For further information, see http://maths.anu.edu.au/~brent/pub/pub242.html