Quoto

Learn / Library / Mental math

Representations as a gap of squares

Mental mathHard

In how many ways can be written as , where and are non-negative integers with ? Different pairs count as different ways.

Checking an answer needs JavaScript. The hint and the solution open without it.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Factor as and think about parity.

Solution
  1. Since , we need factor pairs with .
  2. The pairs are , and , all with both factors odd, so and are integers.
  3. These give , and .
  4. So there are ways.

Answer: