Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Let S(n) = 1 + 2 + · · · + n be the sum of the first n natural numbers and letC(n)=13+23++n3be the sum of the first n cubes. Prove the following equalities by induction on n, to arrive at the curious conclusion that Cn=(Sn)2 for every n.

a. S(n)=12n(n+1)

b.C(n)=14(n4+2n3+n2)=14n2(n+1)2

Short Answer

Expert verified

a. The given equality of Sn=12nn+1 can be proved by induction.

b. The given equality ofCn=14n4+2n3+n2=14n2n+12

Step by step solution

01

Explain given information:

Given is the sum of first natural numbers as Sn=1+2++nand the sum of first ncubes beCn=13+23++n3 . The equalities has to be proved by the induction method.

02

(a) Prove equality by induction.

Consider that the sum of first natural numbers Sn=1+2++nbe,

Sn=12nn+1

By induction method, rewrite Sn=1+2++nas, i=1ni=12nn+1

For n=1,

1=1211+11=22=1

It is true.

For n=2,

1+2=1222+12=62=2

It is true.

Thus, it is true for n.

Prove it for n+1,Sn+1=i=1n+1i=12n+1n+1

Sn+1=1+2++n+n+1=Sn+n+1=nn+12+n+1=n+1n+22

Sn+1=i=1n+1i=12n+1n+2

Therefore, it has been proved that the given equality for sum of natural numbers is also true for n+1.Hence the given equality is correct.

03

(b) Prove equality by induction.

Consider the sum of the cube Cn=13+23++n3is given by,

Cn=14n4+2n3+n2=14n2n+12

The given equality can be written as,

i=1k=ni3=13+23+....+n3=14n2n+12

Forn=1 ,

13=14121+121=1

It is true.

It is true forn=n also.

For, n=n+1,

Cn+1=13+23+...+n3+n+13=14n2n+12+n+13=n+12n2+4n+44=n+12n+224

Therefore, the given equality is true for n+1, hence it is correct.

From the above explanation,

Cn=14n2n+12=nn+122Cn=Sn2

Therefore, it is concluded that Cn=Sn2

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

A two-dimensional finite automaton (2DIM-DFA) is defined as follows. The input is an m×nrectangle, for any m,n2. The squares along the boundary of the rectangle contain the symbol # and the internal squares contain symbols over the input alphabet . The transition function δ:Q×#Q×L,R,U,Dindicates the next state and the new head position (Left, Right, Up, Down). The machine accepts when it enters one of the designated accept states. It rejects if it tries to move off the input rectangle or if it never halts. Two such machines are equivalent if they accept the same rectangles. Consider the problem of determining whether two of these machines are equivalent. Formulate this problem as a language and show that it is undecidable.

Use the procedure described in Lemma 1.60to convert the following finite automata to regular expressions.

Give a counter example to show that the following construction fails to prove that the class of context-free languages is closed under star. Let A be a CFL G=(V,,R,S)that is generated by the CFG . Add the new rule SSSand call the resulting grammar. This grammar is supposed to generate A* .

Give informal English descriptions of PDAs for the languages in Exercise 2.6

Give context-free grammars generating the following languages.

a. The set of strings over the alphabet a,bwith more a's than b's

b. The complement of the language anbnn0.

c. w#xwRis a substring of x for w,x 0,1*

d. localid="1662105288591" x1#x2#...#xkk1,each xilocalid="1662105304877" a,b*,and for some i and j ,localid="1662105320570" xi=xjR

LetAbe the set{x,y,z}andBbe the set{x,y}.

  1. IsAa subset ofB?
  2. IsBa subset ofA?
  3. What isAB?
  4. What isAB?
  5. What isA×B?
  6. What is the power set ofB ?
See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free