Skip to main content

Questions tagged [integer-sequence]

4 votes
1 answer
125 views

I want to turn finite integer sequences, or a finite subset, into an elastic bracelet. Below I have answer for how to do this that took me a while to think of how to do. It still isn't perfect as the ...
Romogi's user avatar
  • 687
4 votes
2 answers
162 views

Problem statement: I am trying to write a function that calculates the number of distinct ways an integer can be expressed as a sum of nonnegative integer powers of its decimal digits and return this ...
Vosoni's user avatar
  • 347
1 vote
2 answers
227 views

Here is, I think, a relatively simple code to generate a recursive sequence, but it takes Mathematica forever to generate those tables. I can understand maybe why it takes so long to generate the ...
user1085677's user avatar
3 votes
2 answers
297 views

Given a number, I am trying to find the longest streak of positive divisibility into sequential smaller numbers. Here's an example: We have this 2D list: ...
Steve237's user avatar
  • 1,747
2 votes
1 answer
147 views

Suppose we have the following code: ...
Arbuja's user avatar
  • 81
2 votes
2 answers
166 views

Suppose I know the sequence is of the $a n^4 + b n^3 + c n^2 + d n$, with positive integers $a,b,c,d$, what is the easiest way to get them from the first few coefficients? Here are the sequences I'm ...
Yaroslav Bulatov's user avatar
20 votes
6 answers
1k views

I want to find the peaks, plateaus and ledges of an integer sequence, but all my attempts failed. 1. Example list ...
eldo's user avatar
  • 84.8k
5 votes
4 answers
283 views

I have the following: data = {15, 25, 35, 45, 55, 65, 75, 85, 95, 105}; selector = {0, 1, 1, 0, 1, 1, 1, 0, 0, 0}; I want to create the following list from ...
IntroductionToProbability's user avatar
10 votes
8 answers
1k views

I need a list of integers to check if a variable has one of the values of the list. If[ MemberQ[List,x], Green, Red] The list contains integers and is characterized ...
100xln2's user avatar
  • 446
3 votes
1 answer
151 views

Let $F_n$ denote the $n$-th Fibonacci number. I am interested in the sequence $$a(k, n)=\left | \left \{0 \leq m \leq n: \frac{F_m}{k} \; \text{is a perfect square} \right \} \right |,$$ where $|\...
user227351's user avatar
0 votes
1 answer
90 views

I want D[Subscript[a, k],Subscript[a,j]] to return something like the Kronecker delta. Is this possible?
Aakash Lakshmanan's user avatar
-1 votes
4 answers
148 views

Assume that : x = (n^2-n)/2 y = ((n+1)^2)-(n+1))/2 n is an integer and n ≥ 0 Examples = 3(0) + 1 = 1 3(1) + 3 = 6 3(3) + 6 = 15 and so on.
user1221's user avatar
8 votes
1 answer
423 views

In the course of my research years ago, I came across three integer sequences related to Ramanujan's pi formulas but for level $10$. Their recurrence relations may be important. (Just like the level $...
Tito Piezas III's user avatar
1 vote
1 answer
92 views

I tried do define two OIES Sequences like that: ...
Raphael J.F. Berger's user avatar

15 30 50 per page
1
2 3 4 5
8