Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. In[1]:= x[1, 1] = 0; y[1, 1] = -1;
  2. x[1, 2] = 0; y[1, 2] = 1;
  3. x[1, 3] = -3; y[1, 3] = -2;
  4. x[1, 4] = -3; y[1, 4] = 2;
  5. x[1, 5] = -4; y[1, 5] = -5;
  6. x[1, 6] = -4; y[1, 6] = 5;
  7. x[1, 7] = 2; y[1, 7] = -7;
  8. x[1, 8] = 2; y[1, 8] = 7;
  9.  
  10. x[n_, i_] := -9 x[n - 1, i] - 4 y[n - 1, i] - 14;
  11. y[n_, i_] := -20 x[n - 1, i] - 9 y[n - 1, i] - 28;
  12.  
  13. Group[i_] := Select[Table[x[k, i], {k, 1, 15}], # > 0 &];
  14. data = Union[Group[1], Group[2], Group[3], Group[4], Group[5],
  15. Group[6], Group[7], Group[8]];
  16.  
  17. Sum[data[[i]], {i, 1, 30}]
  18.  
  19. Out[1]= 5673835352990
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement