You *could* shorten every second element calculation by writing ```d[N] = -d[N-1]``` if you like.