Question

Suppose you begin with a pile of n stones and split this pile into n piles...

Suppose you begin with a pile of n stones and split this pile into n piles of one stone each by successively split- ting a pile of stones into two smaller piles. Each time you split a pile you multiply the number of stones in each of the two smaller piles you form, so that if these piles have r and s stones in them, respectively, you compute rs. Show that no matter how you split the piles, the sum of the products computed at each step equals n(n - 1)/2.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Proof by induction:

If you have one stone, you do no splitting, and 1*0/2 = 0, which is correct.
If you have two stones, you have to split into two piles of size 1.
1 * 1 = 1. n(n-1)/2 = 2(2-1)/2 = 2*1/2 = 2/2 = 1. Correct.
Assume for n = k.
Show for n = k + 1.
When you split the pile of size k+1, you split this into 2 piles of size x and k+1-x, where 1 <= x <= k
Thus, your first product is x(k+1 -x)
By assumption, the pile of size x, when broken up, will yield a product of
x(x-1)/2 and the pile of size k+1-x will yield a pile of size (k+1-x)(k+1-x-1)/2
x(k+1 -x) + x(x-1)/2 + (k+1-x)(k+1-x-1)/2 = (noting that k+1-x-1 = k - x)
xk + x - x2 + x2/ 2 - x/2 + k2 /2 -kx/2 + k/2 - x/2 -kx/2 + x2/ 2 =
k2 /2 + k/2 + xk -kx/2 -kx/2 + x - x/2 - x/2 - x2 + x2/ 2 + x2/ 2 =
k2 /2 + k/2 =
(k+1)(k)/2 =
(k+1)(k+1-1)/2 which is what we were trying to prove.

Add a comment
Know the answer?
Add Answer to:
Suppose you begin with a pile of n stones and split this pile into n piles...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Answer the following Nim game style questions. (Robert's Game) In this game, two players take turns removing stones from a pile that begins with n stones. The player who takes the last stone w...

    Answer the following Nim game style questions. (Robert's Game) In this game, two players take turns removing stones from a pile that begins with n stones. The player who takes the last stone wins. A player removes either one stone or p stones, where p is a prime dividing the number of stones in the pile at the start of the turn For which n does the First Player have a winning strategy? A winning strategy for the First Player...

  • a) Suppose you collect a SRS of size n from a population and from the data...

    a) Suppose you collect a SRS of size n from a population and from the data collected you computed a 95% confidence interval for the mean of the population. Which of the following would produce a new confidence interval with larger width (larger margin of error) based on these same data? A. Use a larger confidence level. B. Use a smaller confidence level. C. Nothing can guarantee absolutely that you will get a larger interval. One can only say the...

  • Problem 2. Ripple Carry and Carry Look-ahead Adders For the binary adding circuit that adds n-bit...

    Problem 2. Ripple Carry and Carry Look-ahead Adders For the binary adding circuit that adds n-bit inputs x and y, the following equation gives ci+1 (the carry out bit from the i" position) in terms of the inputs for the ih bit sum x, yi, and ci (the carry-in bit): Letting gi xiyi and pi = xi+yi, this can be expressed as: ci+1 = gi+piCi a) In a ripple carry adder structure, the carry bits are computed sequentially. That is,...

  • Suppose you have a sorted array of positive and negative integers and would like to determine...

    Suppose you have a sorted array of positive and negative integers and would like to determine if there exist some value of x such that both x and -x are in the array. Consider the following three algorithms: Algorithm #1: For each element in the array, do a sequential search to see if its negative is also in the array. Algorithm #2:For each element in the array, do a binary search to see if its negative is also in the...

  • Problem 3: Design Problem On Figure P3a, you have a Common Source (CS) n-channel MOSFET amplifier....

    Problem 3: Design Problem On Figure P3a, you have a Common Source (CS) n-channel MOSFET amplifier. Notice the absence of a source resistor Rsig and load resistor R. If we know how the present amplifier (the one on Figure P3a) behaves without Rsig and RL, we can infer its behaviors if Rsig and R were to be added. design the amplifier circuit on Figure P3a, i.e., you have to find appropriate values for RGj You are to RG,, RD, and...

  • QUESTION 3 (10 Marks) Suppose you are given an array A[0..n 1 of integers, each of...

    QUESTION 3 (10 Marks) Suppose you are given an array A[0..n 1 of integers, each of which may be positive, negative, or zero. A contiguous subarray A|i..j] which includes all the items starting at array index i and ending at array index j is called a positive interval if the sum of its entries is at least zero. For example let A-{-1, 3,-5, 2, 0,-4, 3,-6,-2). Ten A[3, 6) is a positive interval since its sum is 2+0+(-4)+3-1, but Al4,7isnot...

  • As you know, a numeric type in C is only an approximation to the mathematical entity...

    As you know, a numeric type in C is only an approximation to the mathematical entity due to bit-size limitations. The goal of this lab is to deal with real problems caused by such differences. Along the way, you will also get more practice using loops. Recall that n! (read n factorial) is defined to be (1)(2)(3)(4)...(n-1)(n). Many useful computer science problems require the computation of C(n,k) (read n choose k) which is defined as: n! / (k! * (n-k)!),...

  • Suppose that P[1 · · · n] records the daily net profit GreatStore earns from days...

    Suppose that P[1 · · · n] records the daily net profit GreatStore earns from days 1 to n. As with most stores, sometimes a P[i] is negative (i.e., when the store lost money that day) and sometimes it is positive (i.e., when the store made money that day). Alice, the owner of the store wants to use the information in P[1 · · · n]to plan for her vacation next year. Since she always has to worry about the...

  • Step One This is the Measurable interface we saw in class; you will need to provide...

    Step One This is the Measurable interface we saw in class; you will need to provide this class; this is it in its entirety (this is literally all you have to do for this step): public interface Measurable double getMeasure(); Step Two This is the Comparable interface that is a part of the standard Java library: public interface Comparable int compareTo (Object otherObject); Finish this class to represent a PiggyBank. A PiggyBank holds quarters, dimes, nickels, and pennies. You will...

  • I. Calculation Section Consider the decay of-- into π- and N, Assume : decays froln rest...

    I. Calculation Section Consider the decay of-- into π- and N, Assume : decays froln rest and calculate the kinetic energies of the π and Ao and then their speecls. You will need to look up the rest masses of the three particles in your textbook (or on Enforce momentum conservation and energy conservation. Use the relativistic formula- tion (Hint: The algebraic approach I used in class was to write down the energy conservation condition and the momentum conservation condition,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT