home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / rec / puzzles / 8094 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.7 KB

  1. Path: sparky!uunet!spool.mu.edu!uwm.edu!csd4.csd.uwm.edu!radcliff
  2. From: radcliff@csd4.csd.uwm.edu (David G Radcliffe)
  3. Newsgroups: rec.puzzles
  4. Subject: Re: simple number puzzle
  5. Date: 22 Dec 1992 16:48:27 GMT
  6. Organization: UW-Milwaukee Math Department
  7. Lines: 26
  8. Message-ID: <1h7gsrINNosp@uwm.edu>
  9. References: <1992Dec21.195038.28106@Csli.Stanford.EDU>
  10. NNTP-Posting-Host: 129.89.7.4
  11.  
  12. Given a positive integer n, in how many ways can it be expressed
  13. as the sum of (one or more) consecutive positive integers?  The
  14. surprising answer is that the number of such representations is
  15. equal to the number of odd divisors of n. 
  16.  
  17. First we find the number of ways of representing n as the sum of
  18. consecutive integers.  To write n as the sum of an odd number of
  19. consecutive integers, we need to solve (a-b) + . . . + (a+b) = n.
  20. That is, a(2b+1)=n.  The number of solutions of this equation is
  21. equal to the number of odd divisors of n.  Similarly, to write n
  22. as the sum of an even number of consecutive integers, we need to
  23. solve (a-b+1) + . . . + (a+b) = n; that is, (2a+1)b=n.  Again,
  24. the number of solutions of this equation is equal to the number of
  25. odd divisors of n.  The total number of representations is thus
  26. twice the number of odd divisors of n.
  27.  
  28. If n=a+...+b then n=(1-a)+...+b.  Define an equivalence relation
  29. on the set of all solutions by declaring that {a,...,b} ~ {1-a,...,b}.
  30. Each equivalence class has two elements, and exactly one of these
  31. elements contains only positive integers.  Therefore, half of
  32. the solutions to n=a+...+b are positive.  So, the number of solutions
  33. to n=a+...+b in positive integers is equal to the number of odd
  34. divisors of n.
  35.  
  36. --
  37. David Radcliffe                              radcliff@csd4.csd.uwm.edu
  38.