Problem

Source: Turkey TST 2014 Day 1 Problem 1

Tags: induction, analytic geometry, graphing lines, slope, combinatorics proposed, combinatorics



Find the number of $(a_1,a_2, ... ,a_{2014})$ permutations of the $(1,2, . . . ,2014)$ such that, for all $1\leq i<j\leq2014$, $i+a_i \leq j+a_j$.