Absolute value as a distance

r > 0

Explanation

means , that is five integers: , , , 0, 1.

Examples

Example 1: harder

What is the smallest value of the expression

  1. For between and 1 the sum is the distance between those points.
  2. .

Answer: 6

Example 2: harder

What is the smallest value of the expression

  1. For between and the sum is the distance between those points.
  2. .

Answer: 2

Example 3: harder

What is the smallest value of the expression

  1. For between 0 and 5 the sum is the distance between those points.
  2. .

Answer: 5