---
title: "Blackboard Invariant with Operation a + b + 2ab on Fractions"
organization: "NityaDhi Digital Mathematics Lab (Asa Edtech Private Limited)"
url: "https://www.nityadhi.com/problems/hard-olympiad-nt-w1-invariants-telescoping-board-operation"
board: "Olympiad"
grade: "Olympiad"
published_at: "2026-11-28T10:30:00+05:30"
---

# Blackboard Invariant with Operation a + b + 2ab on Fractions

The $99$ numbers $\frac{1}{2}, \frac{1}{3}, \frac{1}{4}, \dots, \frac{1}{100}$ are written on a blackboard. In each step, a student erases any two numbers $a$ and $b$ from the board and writes the single number $a + b + 2ab$ in their place. After $98$ steps, only one number $N$ remains on the board. Find $N$.

## Textbook Solution

Let $c = a + b + 2ab$ be the newly written number. Observe the algebraic identity:
$$2c + 1 = 2(a + b + 2ab) + 1 = 4ab + 2a + 2b + 1 = (2a + 1)(2b + 1).$$
Therefore, if we define the product over all numbers currently on the board as
$$P = \prod_{x \text{ on board}} (2x + 1),$$
then replacing $a$ and $b$ by $c$ replaces the factor $(2a + 1)(2b + 1)$ in $P$ with $(2c + 1)$, which leaves $P$ completely **invariant** after every step!

Initially, for $x = \frac{1}{k}$ ($2 \le k \le 100$), we have
$$2x + 1 = \frac{2}{k} + 1 = \frac{k + 2}{k}.$$
Thus the initial invariant is a telescoping product:
$$P = \prod_{k=2}^{100} \frac{k + 2}{k} = \frac{4}{2} \cdot \frac{5}{3} \cdot \frac{6}{4} \cdot \frac{7}{5} \cdots \frac{100}{98} \cdot \frac{101}{99} \cdot \frac{102}{100}.$$
Every numerator from $4$ to $100$ cancels with the denominator two terms later, leaving:
$$P = \frac{101 \cdot 102}{2 \cdot 3} = 101 \cdot 17 = 1717.$$
At the end, only $N$ remains on the board, so $P = 2N + 1$:
$$2N + 1 = 1717 \implies 2N = 1716 \implies N = 858.$$

## Vedic Shortcut

Whenever an operation has the bilinear form $a + b + \lambda ab$, immediately multiply by $\lambda$ and add $1$:
$$\lambda(a + b + \lambda ab) + 1 = (\lambda a + 1)(\lambda b + 1).$$
Here $\lambda = 2$, so the invariant is $\prod (2x + 1)$. Since $2(\frac{1}{k}) + 1 = \frac{k+2}{k}$ jumps by $2$, only the **first $2$ denominators** ($2, 3$) and **last $2$ numerators** ($101, 102$) survive cancellation!
Thus $2N + 1 = \frac{101 \times 102}{6} = 1717 \implies N =$ **$858$**.

## Common Mistakes

- **Using $x + 1$ as the invariant instead of $2x + 1$**: Forgetting the factor of $2$ in $2ab$ leads to $(a+1)(b+1) = ab + a + b + 1 \ne a + b + 2ab + 1$.
- **Mis-cancelling a shift-2 telescoping product**: Dropping $101$ or $3$ and keeping only the very first denominator ($2$) and very last numerator ($102$).