Advertisement
Guest User

the proof

a guest
Feb 25th, 2014
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. (%i1) s(n) := (2*a + (n-1)*d)*(n/2)$
  2.  
  3. (%i2) S1: s(n)$
  4.  
  5. (%i3) S2: s(2*n)$
  6.  
  7. (%i4) S3: s(3*n)$
  8.  
  9. (%i5) expand(S1);
  10. 2
  11. d n d n
  12. (%o5) ---- - --- + a n
  13. 2 2
  14. (%i6) expand(S2);
  15. 2
  16. (%o6) 2 d n - d n + 2 a n
  17. (%i7) expand(S3);
  18. 2
  19. 9 d n 3 d n
  20. (%o7) ------ - ----- + 3 a n
  21. 2 2
  22. (%i8) expand(S2-S1);
  23. 2
  24. 3 d n d n
  25. (%o8) ------ - --- + a n
  26. 2 2
  27. (%i9) expand(3*(S2-S1));
  28. 2
  29. 9 d n 3 d n
  30. (%o9) ------ - ----- + 3 a n
  31. 2 2
  32. (%i10) is(equal(s(3*n),3*(s(2*n)-s(n))));
  33. (%o10) true
  34.  
  35.  
  36. First, we find and expand the value of S1, S2 and S3 in the lines marked %o5, %o6 and %o7.
  37. Then, in line %o8, we calculate the value of S2 - S1. Then we multiply it with 3 in line %o9.
  38. Since, the value of %o7 and %o9 is the same, therefore S3=3(S2-S1)
  39.  
  40. %o10 is a one line shortcut in Maxima that does the whole thing together.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement