Program to numerically solve 3 ODE's

Okay, I beat my head upon a wall for a while on this one. Why does this work:

y = y+(k1+2*(k2+k3)+k4)/6

But this does not?

y+(1/6)*(k1+(2*k2)+(2*k3)+k4)