For positive integer values of N, let boxed(N) be equal to:
boxed(N) = 2+4+6+8+...+N if N is even,
and
boxed(N) = 1+3+5+7+...+N if N is odd.
What is the value of boxed(2009) minus boxed(2008)?
boxed(2009) - boxed(2008) = (1 + 3 + 5 + ... + 2009) - (2 + 4 + ... + 2008) = 504.
For positive integer values of N, let boxed(N) be equal to:
boxed(N) = 2+4+6+8+...+N if N is even,
and
boxed(N) = 1+3+5+7+...+N if N is odd.
What is the value of boxed(2009) minus boxed(2008)?
s=boxed(2009)minusboxed(2008)s=(1+3+5+...+2009)−(2+4+...+2008)s=1−2+3−4+⋯+2007−2008+2009
s=1−2+3−4+⋯+2007−2008+2009s=2009−2008+2007−2006+⋯+3−2+12s=2010−2010+2010−2010+⋯+2010−2010+20102s=0+0+⋯+0+20102s=2010|:2s=1005
boxed(2009) minus boxed(2008) = 1005