跳到正文

剪贴板

剪贴板 f6xylrxg

原文
剪贴板信息

剪贴板信息

收录
更新

附录:整除集合 R(n)R(n) 的性质证明

0. 定义回顾

定义:

R(n)={⌊ni⌋∣1≤i≤n}R(n)=\left\{\left\lfloor\frac{n}{i}\right\rfloor \mid 1\le i\le n\right\}

该集合刻画了整除分块 / 块筛中所有可能出现的商值。

集合 R(n)R(n) 呈现两种结构:

  • 一侧是 1∼⌊n⌋1\sim \lfloor \sqrt n \rfloor 的连续整数。
  • 另一侧是 ⌊n1⌋∼⌊n⌊n⌋⌋\left\lfloor\frac{n}{1}\right\rfloor \sim \left\lfloor\frac{n}{\lfloor \sqrt n \rfloor}\right\rfloor 的反比例数列

等价的定义:

R(n)={1,2,⋯ ,⌊n⌋,⌊n1⌋,⌊n2⌋,⋯ ,⌊n⌊n⌋⌋}R(n)=\left\{1, 2, \cdots, \lfloor \sqrt n \rfloor, \left\lfloor\frac{n}{1}\right\rfloor, \left\lfloor\frac{n}{2}\right\rfloor, \cdots, \left\lfloor\frac{n}{\lfloor \sqrt n \rfloor}\right\rfloor \right\}

1. 性质一:

∣R(n)∣=Θ(n)|R(n)|=\Theta(\sqrt n)

由 R(n)R(n) 的第二条定义式可以直接得到。

2. 性质二:

[1,⌊n⌋]⊆R(n)[1,\lfloor\sqrt n\rfloor]\subseteq R(n)

也是根据第二条定义式可以直接得出。

3. 性质三:

若 x∈R(n)x\in R(n),则 R(x)⊆R(n)R(x) \subseteq R(n)。

设 x=⌊nm⌋x = \left\lfloor\frac{n}{m}\right\rfloor,则对所有 ⌊xi⌋∈R(x)\left\lfloor\frac{x}{i}\right\rfloor \in R(x) 都有:

⌊xi⌋=⌊⌊nm⌋i⌋=⌊nmi⌋∈R(n)\left\lfloor\frac{x}{i}\right\rfloor = \left\lfloor\frac{\left\lfloor\frac{n}{m}\right\rfloor}{i}\right\rfloor = \left\lfloor\frac{n}{mi}\right\rfloor \in R(n)

得证。

4. 性质四:

∑x∈R(n)x=Θ(n3/4)\sum_{x\in R(n)}\sqrt x=\Theta(n^{3/4})

考虑 R(n)R(n) 的第二条定义式,我们有

∑x∈R(n)x=∑i=1⌊n⌋i+⌊ni⌋=Θ(∫1nx+⌊nx⌋dx)=Θ(n3/4)\begin{aligned} \sum_{x\in R(n)}\sqrt x &= \sum_{i = 1}^{\lfloor\sqrt n\rfloor} \sqrt i + \sqrt{\left\lfloor\frac{n}{i}\right\rfloor}\\ &= \Theta\left(\int_{1}^{\sqrt n} \sqrt x + \sqrt{\left\lfloor\frac{n}{x}\right\rfloor} \mathrm{d}x \right)\\ &= \Theta(n^{3/4}) \end{aligned}

5. 性质五:

若 B≥nB\ge\sqrt n,则 ∑x∈R(n)x>Bx=Θ(nB)\displaystyle \sum_{\substack{x\in R(n)\\x>B}}\sqrt x =\Theta\left(\frac{n}{\sqrt B}\right)。

x≥nx \ge \sqrt n 就是把 R(n)R(n) 的第一部分 ban 了,并且第二部分需要满足:

⌊ni⌋≥B  (1≤i≤n)\left\lfloor\frac{n}{i}\right\rfloor \ge B \; (1 \le i \le \sqrt n)

上式移项可推出 1≤i≤⌊nB⌋1 \le i \le \left\lfloor\frac{n}{B}\right\rfloor。则有

∑x∈R(n)x>Bx=∑i=1⌊nB⌋⌊ni⌋=Θ(∫1nB⌊ni⌋dx)=Θ(nB)\begin{aligned} \sum_{\substack{x\in R(n)\\x>B}}\sqrt x &= \sum_{i = 1}^{\left\lfloor\frac{n}{B}\right\rfloor} \sqrt{\left\lfloor\frac{n}{i}\right\rfloor}\\ &= \Theta\left(\int_{1}^{\frac{n}{B}}\sqrt{\left\lfloor\frac{n}{i}\right\rfloor} \mathrm{d}x\right)\\ &=\Theta\left(\frac{n}{\sqrt B}\right)\\ \end{aligned}