Problem

Source: Tournament of towns, Junior B-Level paper, Fall 2004

Tags: modular arithmetic, number theory unsolved, number theory



How many different ways are there to write 2004 as a sum of one or more positive integers which are all "aproximately equal" to each other? Two numbers are called aproximately equal if their difference is at most 1. The order of terms does not matter: two ways which only differ in the order of terms are not considered different.