How many different ways are there to write 2004 as a sum of one or more positive integers which are all "approximately equal" to each other? Two numbers are called approximately 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.

Let's think step by step and output the final answer within \boxed{}.
user