Find all positive integers $k$ such that there exists some permutation of $(1, 2,...,1000)$ namely $(a_1, a_2,..., a_{1000}) $ and satisfy $|a_i - i| = k$ for all $i = 1,1000$.
Source: 2018 Saudi Arabia IMO TST IV p3
Tags: permutation, combinatorics
Find all positive integers $k$ such that there exists some permutation of $(1, 2,...,1000)$ namely $(a_1, a_2,..., a_{1000}) $ and satisfy $|a_i - i| = k$ for all $i = 1,1000$.