Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as JavaScript by rude ( 8 years ago )
var i = 0;
var x = [];
x[4] = 0;
x[3] = -3;
x[2] = -7;
for (i = 3; i >= 0; i--) {
x[i-2] = x[i] + x[i-1] -i;
}
for (i = 0; i< 5; i++){
console.log("I: ", i, "X: ",x[i], "x[i-1]: ", x[i-1], "X[i-2]: ", x[i-2])
}
for (i = 5; i < 21; i++) {
x[i] = i + (x[i-2] - x[i-1]);
console.log("I: ", i," x: ", x[i],", x[i-2] :", x[i-2], ",x[i-1]: ",x[i-1] );
}
Revise this Paste