scratch

§ Number of Distinct Numbers in a Partition

created 2021-07-30 · last edited 2022-05-30
  • A positive integer nnn is represented as a partition λ≡(k1,k2,… )\lambda \equiv (k_1, k_2, \dots)λ≡(k1​,k2​,…) where ∑iki=n\sum_i k_i = n∑i​ki​=n and k1≤k2,…k_1 \leq k_2, \dotsk1​≤k2​,…. Such a λ\lambdaλ always contains at most O(n)O(\sqrt n)O(n​) distinct numbers.
  • Intuition: suppose we want to have the maximum number of distinct numbers. Since we are tied down by the constraint ∑ki=n\sum k_i = n∑ki​=n, we must try to choose the kik_iki​ as small as possible. But we know that even ∑i=1pi=p(p+1)/2∼O(p2)\sum_{i=1}^p i = p(p+1)/2 \sim O(p^2)∑i=1p​i=p(p+1)/2∼O(p2). Now if O(p2)=nO(p^2) = nO(p2)=n, then the sum can only run upto p\sqrt pp​.
  • Alternate intuiton: asking to build a number nnn out of distinct numbers k1,k2,…k_1, k_2, \dotsk1​,k2​,…is asking to build a "jagged triangle" out of columns (i,ki)(i, k_i)(i,ki​) whose area is nnn. Area is 1/2bh1/2 b h1/2bh, which is sorta quadratic (?)
❦
Newer ৪ Blog ৪ Older