Problem

Source: Portugal OPM 2016 p2

Tags: combinatorics, number theory, consecutive



In how many different ways can you write $2016$ as the sum of a sequence of consecutive natural numbers?