Proving a formula for the number of intervals contained in [1,n]

  • Thread starter Thread starter morbius27
  • Start date Start date
  • Tags Tags
    Formula intervals
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
3 replies · 2K views
morbius27
Messages
13
Reaction score
0

Homework Statement


Prove a simple formula for the number of closed intervals with integer endpoints contained in the interval [1,n] (including one point intervals), where n is a natural number.


The Attempt at a Solution


I know that the formula ends up being the sum of i from i=1 to i=n (this makes sense just from inspection) but I have no idea how to actually go about proving the claim.
 
Physics news on Phys.org
Welcome to PF!

Hi morbius27! Welcome to PF! :wink:

Try it for n = 4 first …

write out a list of all the closed intervals …

what do you get? when you count them, can you see a pattern? :smile:​
 
if you know the solution but want to prove it, use induction
 


tiny-tim said:
Hi morbius27! Welcome to PF! :wink:

Try it for n = 4 first …

write out a list of all the closed intervals …

what do you get? when you count them, can you see a pattern? :smile:​

Thanks Tiny Tim! I got the solution after doing what you said and got the pattern; it worked beautifully after that ;)