In a message dated 24/11/99 09:38:55 GMT Standard Time,
[EMAIL PROTECTED] writes:
<<
> First, perhaps I should explain some notation :-) a_11 is the letter `a',
> followed by 11 in subscript. x^2 is the letter `x', followed by the letter
> 2 in superscript (ie. `x^2' would be mathematically the same as `x*x').
> OK, here goes:
>
> If (3x^2 - x - 2)^6 = (a_12)x^12 + (a_11)x^11 + ... + (a_1)x + a_0, what
> is a_0 + a_2 + a_4 + ... + a_12?
>
> The answer is an integer from 0 to 999, inclusive.
>
>>
I thought you would like to know how easy Steinar's problem
is in UBASIC:
4 'asave"polynom1"
10 A=poly(-2,-1,3) ' Set A = polynomial -2 - 1*x + 3*x^2
20 print A
30 B=A^6
40 print B
50 Sc=0
60 for I=0 to 12 step 2 ' sum even coefficients 0 to 12
70 Sc=Sc+coeff(B,I)
80 next I
90 print "Sum of even coefficients =";Sc
This gives the answer 32.
All the best, George.
_________________________________________________________________
Unsubscribe & list info -- http://www.scruz.net/~luke/signup.htm
Mersenne Prime FAQ -- http://www.tasam.com/~lrwiman/FAQ-mers