home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / sci / math / 17992 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.0 KB  |  34 lines

  1. Newsgroups: sci.math
  2. Path: sparky!uunet!stanford.edu!nntp.Stanford.EDU!ilan
  3. From: ilan@leland.Stanford.EDU (ilan vardi)
  4. Subject: Re: Closed forms for sums
  5. Message-ID: <1993Jan11.205937.9885@leland.Stanford.EDU>
  6. Sender: news@leland.Stanford.EDU (Mr News)
  7. Organization: DSG, Stanford University, CA 94305, USA
  8. References: <964.165.uupcb@hal9k.ann-arbor.mi.us> <24833@galaxy.ucr.edu>
  9. Date: Mon, 11 Jan 93 20:59:37 GMT
  10. Lines: 22
  11.  
  12. In article <24833@galaxy.ucr.edu> tadpole@ucrmath.ucr.edu (tad white) writes:
  13. >* While we're on the subject, I was killing some time with Derive, a
  14. >* Mathematical Assistant one day waiting form my Finite class to begin
  15. >* and found the closed form for
  16. >* 
  17. >*         ---
  18. >*         \     j
  19. >*          >   i
  20. >*         /
  21. >*         ---
  22. >*         i=1
  23. >
  24. >Mathematica doesn't seem to have them built-in either, and I needed
  25. >them for my calculus course last quarter.  So here's Mathematica code
  26. >for them, with a sample.
  27. >
  28.  
  29. How about 
  30.  
  31.    s[m_, n_]:= (BernoulliB[m, n+1] - BernoulliB[m, 0])/m
  32.  
  33. -ilan
  34.