##KEYWORDS('Series' , 'Divergent', 'Convergent' ) ##DESCRIPTION ## Determine if a series is convergent and evaluate it ##ENDDESCRIPTION ## Shotwell cleaned ## DBsubject('Calculus') ## DBchapter('Infinite Sequences and Series') ## DBsection('Series') ## Date('6/3/2002') ## Author('') ## Institution('') ## TitleText1('Calculus Early Transcendentals') ## EditionText1('4') ## AuthorText1('Stewart') ## Section1('11.2') ## Problem1('23') DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGbasicmacros.pl", "PGanswermacros.pl", "PGauxiliaryFunctions.pl" ); TEXT(beginproblem()); $showPartialCorrectAnswers = 1; $a = random(1,19,1); BEGIN_TEXT Determine whether the series is convergent or divergent. If convergent, find the sum; if divergent, enter $BITALIC div $EITALIC. \[ \sum_{n=1}^\infty \frac{$a}{n(n+2)} \] Answer: \{ans_rule(20)\} END_TEXT ANS(num_cmp("$a*3/4", strings=>['div'])); ENDDOCUMENT(); # This should be the last executable line in the problem.