Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Take the following series D.


I then need to make a new column(and make it a matrix) to subtract the values of the previous like so

2, 3
5, 1
6, 6

until eventually

2, 3, 2, 3
5, 1, 5
6, 6

As you can see the result(r) is 3, given that the series could be of any size what formula would always return the last number. I also couldn't figure out how to use the MathJax with matrices. A one line formula would be very nice something like.
r = ??? D ???

share|cite|improve this question
Could be $a_n = 2+ 3 n -n(n-1)+\frac76n(n-1)(n-2)$, but could also be quite arbitrary. – Hagen von Eitzen Oct 13 '12 at 19:32
oh sorry, i just realized n :P – Tyler Oct 13 '12 at 19:44

A quick computation for 2, 3 and 4 elements makes me believe you get $$ r = \sum_{i=1}^N (-1)^{N-i}\binom{N}{i}d_i $$ In particular you get $$ \begin{eqnarray} r &=& d_2 - d_1 & \text{if } N = 2 \\ r &=& d_3 - 2d_2 + d_1 & \text{if } N = 3 \\ r &=& d_4 - 3d_3 + 3d_2 - d_1 & \text{if } N = 4 \end{eqnarray} $$ But beware, as I said, so far that's just an edcutated guess, not a formally proved fact. Having said that, I'd be somewhat surprised if I didn't turn out to hold, though.

(Note that $\binom{N}{i}$ is not a fraction, but a binomial coefficient, pronounced "N over i". See for more information)

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.