# Questions tagged [sequence]

Questions on specifying order in and splicing of lists, including use of Mathematica Sequence objects.

136 questions
Filter by
Sorted by
Tagged with
57 views

### Avoiding the memory requirements of an accumulation of returned Nulls (etc)

There is an extensive but relatively old answer to a similar question here, and there are many Qs and As about avoiding using Table where possible. My problem is a mixture of the two: I have been ...
94 views

### Generate a sequence of sequences

Imagine I have a sequence of M integers each of which is either zero or one. How do I generate a sequence of all such 2^M sequences?
119 views

28 views

59 views

435 views

### Generate this sequence more efficiently

Is there a more effecient way to generate the sequence shown below. ...
66 views

### How to set up patterns when using SequenceSplit

Given a list lst={0,0,0,0,0,"A1",0,0,0,"B2",0,0,"C3","D4","E5",0,0,0,"F6"} How to split it as ...
116 views

### Convert a piecewise definition of a single impulse into an impulse train

NOTE: See update at end of question I have a function smoothstep (based on the derivative of a smoothstep function) that gives a single impulse as follows: ...
123 views

### Longest Repeated Substring

Is there a solution in Mathematica to the problem of finding the longest substring of a sequence that occurs at least twice.For example {1, 2, 3, 4, 5, 2, 3} has ...
35 views

### Splitting a list of letters into subsequences starting with uppercase letters [duplicate]

Given a list of upper/lowercase characters, I'm trying to split it into subsequences that start with an uppercase and contain the next few (not necessarily positive number of) elements up until the ...
63 views

### Counting the number of Configurations in an Array with Constraints

Consider an array $$\{a_i\}, i=1, ..., N$$ with periodic boundary condition, i.e. $i\equiv i+N$. $a_i\in \{0, 1\}$. I would like to count the number of configurations of the array $\{a_i\}$ satisfying ...
155 views

### How to find the length of an indefinitely repeated sequence in a list

Here, I am not looking for simply a repeated element, but an indefinitely repeated sequence. For example, if I have the list ...
138 views

### Generating Manipulate variables from a list of rules

I have the following list of rules: ...
84 views

### How to convert the solution of this recurrence like this form?

I am trying to solve the recurrence sequence. I tried RSolve[{a[n] == 1/2 (a[n - 1] + 9/a[n - 1]), a == 1}, a[n], n] // Simplify I got {{a[n] -> 3 Coth[...
68 views

I need the ratio of x to y in this equation: sum [n*(x/10)^n/10^(n-2)] == y from n=1 to ∞ Thank you!
56 views

### Define a variable whose value for each i in [|1,n|] depends on the average value it takes for j different from i [closed]

I would like to define the following variable : So the average value (a) takes for every "individual" but i. But actually, for each i, the value (a) takes depends on the preceding average: ...
142 views

### Taking a long time to produce output

In the following, I want to know b, but it is taking a very long time even for b. Please help ...
81 views

### Function of a function, both of a list of variables

I am trying to avoid dealing with long explicit lists of variables. What i do so far is the following: VarList={x_, y_}; ParList={x, y}; ValList={2, 3}; What ...
177 views

### @ and Sequence ( and /@ ) [duplicate]

list = { {a,b}, {c,d}, {e,g} } How to efficiently get { f[a,b], f[c,d], f[e,g] } I tried various combinations using ...
70 views

### Weird Behavior of Table and Sequence

I'm writing a function that constructs a multidimensional array (that is, nested lists) using Table. The dimension of the array varies according to the argument to ...
102 views

### When does Slot evaluate?

I looked up the related answers, it must have to do with the scope. Toy example similar to mine in structure: ...
281 views

### Find Sequence Function Error?

I am suprised that mathematica is not able to find the function for the following sequence: ...