Pete3431

10 Reputation

2 Badges

13 years, 10 days

MaplePrimes Activity


These are questions asked by Pete3431

Quick one,

 

How do I count the number of terms in a polynomial

i.e. x^3+x+1 has 3 terms. I have big polynomials with hundreds of time and I want a way to count them

 

Many thanks

Pete

Hello everyone

I want to check whether a recurrence relation produces integers. What I have written is rather messy, I ideally would like some kind of Proc where I can just put in the recurrence relation, the initial conditions and the number of terms I would like to check. Then get a result out which tells me whether the terms in the sequence are all integer. 

 

I have written the following (which tells me what I want to know but in a crude way)

I have a 3rd order nonlinear recurrence relation and I would like to produce the associated sequence.

Here is the relation x[n+2]:=(((x[n+1]*x[n])^2+x[n]^2+x[n+1]^3))/x[n-1]. At the moment the method I am using (a standard do command) is very computationally heavy when I want lots of iterates. I was wondering if there were faster loops, or procs.

Also I would like some kind of way to check if all the terms are integers, maybe some kind of summation where an...

Page 1 of 1