Items tagged with sequence sequence Tagged Items Feed

I'm trying to run two statement sequences, one after the other, numerous times. I have the statement sequences:


>for j from 1 to N do



>end do:


>for j from 1 to N do

>if S[j]>99 then S[j]:=0

>end if:

>end do:



I can manage to run one of them multiple times, but when I try to encompass both of them within my 


>for counter from initial to final do statementsequence

end do:


it doesn't seem to work.


Thanks in advance

Is it possible to display each element of a sequence on a new line?

The default behaviour, obviously, is to display each element on the same line separated by commas, and wrapping to a new line as required by screen space. This is somewhat unsightly when the elements of the sequence contain long equations or expressions, and impacts readability because the commas don't stand out as effective separators between elements.

For example:

B := b=2;

C := c=3;

A := B,C;


b=2, c=3


Is there a way to display each element on a new line?

For example:





Is there another data type or a simple expression that could achieve this effect?

The following limit does not return a value. Then the evalf gives a wrong answer.

The answer should be "undefined" or -infinity .. infinity.

limit(exp(n)/(-1)^n, n = infinity) assuming n::posint; evalf(%);

                       /exp(n)              \
                  limit|------, n = infinity|
                       |    n               |
                       \(-1)                /


The same happens if you delete the assumption.


A similar problem occurs with

limit(sin(Pi/2+2*Pi*n), n = infinity) assuming n::posint;
                            -1 .. 1
without the assumption this would be appropriate.

How to find 2013th term in the sequence 

1, 2, 2, 3, 3, 3, 4, 4, 4, 4, ...?

in which the n-th positive integer appears n times. 

I don't know how to start.

Need help with starting this question. Thanks!

If a sequence is defined by X0=0, X1=1, X2=2 and Xn=n(Xn-3+Xn-2+Xn-1), n>=3

How many digits will X2013 have?

I'm having problem dealing with this question on Maple and would appreciate any help possible.

If f(x) = x/2, if x is even
   f(x) = 3x-1, if x is odd

which sequence will 2013^1102 fall in


Dear Maple forum,


given A, B real numbers,

and after defining the recurrent sequence


x(0) = A

x(n) = 0.5* x(n-1)^3 + B


I would like to see a graphic of x(n) on the plane x(n) - n.

how could I implement in maple 16?


thank you for your help.



I have this sequence:

 D[n] = (Sum((n-k)/(k+1),k = 0 .. n-1)-ln(n!))/n;

How can I put  this in maple, assess if it converges or not and if it is possible, calculate the limit to infinity.



I'm very new to Maple and can't figure out how to do this:

I have these possibilities:

for 1 - [1],[2],[3]

for 2 - [1,2],[2,1],[1,3],[3,1],[2,3],[3,2]

for 3 - [1,2,3],[2,3,1],[3,1,2],[3,2,1],[2,1,3],[1,3,2]

and I want to find all the possible combinations when they are in, say, the order of [3,2,1]







I have created a test document to check an equation and I would like to feed a range of k values (ranging from 0 to say 512) in increments of 1) to the main function, and then plot the result as a graph of Zuncomp (y-axis) vs k(x-axis).

I can verify the values of the function by typing say Zuncomp(0) or Zuncomp(10) etc but how do you run this so that you do Zuncomp(k) to read all values of k and generate the output to plot?

Using Maple 13 (Windows 7...

How to use maple get the nth term of sequence A: 7 + 77 + 777+ ... to n terms.

please help me!!


Hi together,

i wanted to assume the sequence term A(n) of the first Perrin-Pseude-Prime n = 271441.

It´s not that difficult, but i do not understand the Maple-output, and i´ve never found an explenation for it.

the input was: > MatrixVectorMultiply(M^90480, v);  --> its the Matrix formula for the recurrence.

the output gives me a vector (3x1) with the following entry in the second line (witch is the line i want to know):

It found the first four number of this sequence fine but for some reason it wont find the limit as it goes to infinity. I think it should end up being 2sqrt(3)/5 or something like that.


Fine $a_{n}$ of sequence 5 , 8 , 26 , 48 , 122 ,...

1 2 3 Page 1 of 3