---
title: "Sum of Valuations v2 + v3 + v5 of C(1000, 500) via Kummer"
organization: "NityaDhi Digital Mathematics Lab (Asa Edtech Private Limited)"
url: "https://www.nityadhi.com/problems/hard-olympiad-nt-w1-legendre-kummer-binomial-1000-500"
board: "Olympiad"
grade: "Olympiad"
published_at: "2026-11-30T10:30:00+05:30"
---

# Sum of Valuations v2 + v3 + v5 of C(1000, 500) via Kummer

Let $N = \binom{1000}{500}$ be the central binomial coefficient, and let $v_p(N)$ denote the exponent of the prime $p$ in the prime factorization of $N$. Find the value of
$$v_2(N) + v_3(N) + v_5(N).$$

## Textbook Solution

By Legendre's digit-sum formula, $v_p(n!) = \frac{n - s_p(n)}{p-1}$, so for $N = \frac{1000!}{(500!)^2}$:
$$v_p\binom{1000}{500} = v_p(1000!) - 2 v_p(500!) = \frac{2 s_p(500) - s_p(1000)}{p - 1}.$$
(By Kummer's Theorem, this equals the number of carries when adding $500 + 500$ in base $p$.)

1. **For $p = 2$**:
   $500 = 256 + 128 + 64 + 32 + 16 + 4 = 111110100_2 \implies s_2(500) = 6$.
   $1000 = 2 \times 500 \implies s_2(1000) = 6$.
   $$v_2(N) = \frac{2(6) - 6}{2 - 1} = 6.$$

2. **For $p = 3$**:
   $500 = 2(243) + 0(81) + 0(27) + 1(9) + 1(3) + 2(1) = 200112_3 \implies s_3(500) = 6$.
   $1000 = 729 + 243 + 27 + 1 = 1101001_3 \implies s_3(1000) = 4$.
   $$v_3(N) = \frac{2(6) - 4}{3 - 1} = \frac{8}{2} = 4.$$

3. **For $p = 5$**:
   $500 = 4 \times 125 = 4000_5 \implies s_5(500) = 4$.
   $1000 = 1 \times 625 + 3 \times 125 = 13000_5 \implies s_5(1000) = 4$.
   $$v_5(N) = \frac{2(4) - 4}{5 - 1} = \frac{4}{4} = 1.$$

Adding the three valuations:
$$v_2(N) + v_3(N) + v_5(N) = 6 + 4 + 1 = 11.$$

## Vedic Shortcut

Use **Kummer's Carry Counting** directly—no subtraction needed!
Just count carries when doubling $500$ in each base:
- **Base $2$**: Doubling in base $2$ simply shifts digits left, so EVERY $1$-bit causes a carry when adding $x + x$! Thus $v_2\binom{2n}{n} = s_2(n)$ always! Here $500$ has six $1$-bits, so $v_2 = 6$.
- **Base $3$**: Add $200112_3 + 200112_3$ from right to left: carries occur at positions $0$ ($2+2=4$), $1$ ($1+1+1=3$), $2$ ($1+1+1=3$), and $5$ ($2+2=4$) $\implies 4$ carries, so $v_3 = 4$.
- **Base $5$**: $4000_5 + 4000_5 = 13000_5$ has $1$ carry, so $v_5 = 1$.
Total $= 6 + 4 + 1 =$ **$11$**.

## Common Mistakes

- **Thinking $v_p\binom{1000}{500}$ is huge like $v_p(500!)$**: In central binomial coefficients, almost all factors cancel out, leaving $v_p\binom{2n}{n}$ bounded by $\lfloor \log_p(2n) \rfloor$? Wait: $v_2$ is $s_2(n) \le \log_2 n$, and each prime power $p^k$ contributes at most $1$ to $v_p\binom{n}{r}$!
- **Misconverting $500$ or $1000$ to base $3$**: Dropping a zero in $200112_3$ changes the digit sum or carries.