In a soccer tournament, n teams take part. Every team plays with the other one only once. Find the greatest difference between the final scores of the team with neighboring final positions, and express this difference as a function of n. Please provide the value of this difference when n = 10.

Let's think step by step and output the final answer within \boxed{}.
user