数学 > 数论
[提交于 2024年9月9日 (v1),最后修订于 2025年9月12日 (此版本, v10)]
标题:Algorithms for complementary sequences
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Finding the $n$-th positive square number is easy, as it is simply $n^2$. But how do we find the complementary sequence, i.e., the $n$-th positive non-square number? For this case there is an explicit formula. However, for general constraints on numbers, a formula is harder to find. In this paper, we study how to compute the $n$-th integer that does (or does not) satisfy a certain condition. In particular, we consider it as a fixed point problem, relate it to the iterative method of Lambek and Moser, study a bisection approach to this problem, and provide novel formulas for various complementary sequences including the non-$k$-gonal numbers, non-$k$-gonal-pyramidal numbers, non-$k$-simplex numbers, non-sum-of-$k$-th-powers, and non-$k$-th-powers. For example, we show that the $n$-th non $k$-gonal number is given by $n+\text{round}\left(\sqrt{\frac{2n-2+\left\lfloor\frac{k+1}{4}\right\rfloor}{k-2}}\right)$ and that the $n$-th non-second-hexagonal number is $n+\left\lceil\sqrt{\frac{n}{2}}\right\rceil-1$.
提交历史
来自:Chai Wah Wu[v1] 2024年9月9日 星期一 17:45:23 UTC
[v2] 2024年9月30日 星期一 13:41:45 UTC
[v3] 2024年10月1日 星期二 17:28:39 UTC
[v4] 2024年10月3日 星期四 19:12:37 UTC
[v5] 2024年10月9日 星期三 20:01:47 UTC
[v6] 2024年10月17日 星期四 16:59:01 UTC
[v7] 2024年10月27日 星期日 19:18:36 UTC
[v8] 2024年11月3日 星期日 21:23:02 UTC
[v9] 2025年4月17日 星期四 20:48:42 UTC
[v10] 2025年9月12日 星期五 16:58:33 UTC