Doubly consecutive sums

How many numbers less than 2017 are both the sum of two consecutive integers and the sum of five consecutive integers?

Problem



How many numbers less than $2017$ are both the sum of two consecutive positive integers, and the sum of five consecutive positive integers?

If you liked this problem, here is an NRICH task that challenges you to use similar mathematical ideas.