Skip to main content

Questions tagged [integer-sequences]

For questions about sequences of integers. References are often made to the online resource oeis.org.

Filter by
Sorted by
Tagged with
35 votes
8 answers
3k views

Examples of integer sequences coincidences

For the time being, the OEIS website contains almost $300000$ sequences. Each of these sequences is the mark of a specific mathematical concept. Sometimes two (or more) distinct concepts have the ...
6 votes
2 answers
740 views

Shifting an irrational binary sequence

Let $\newcommand{\tn}{\{0,1\}^\mathbb{N}}\tn$ be the collection of all infinite binary sequences. For $s\in\tn$ and $k\in\mathbb{N}$ let the left-shift of $s$ by $k$ positions, $\ell_k(s)\in \tn$, be ...
1 vote
0 answers
102 views

Curious congruences modulo $4$ involving primes

We define $$S(n)=\sum_{a=2+(n\pmod 2)}^{n-2} \sharp(\{j,1\leq j<n \pmod{a},(a,j)=1\})\ .$$ (Searching the OEIS yielded no results.) For $n>2$ we have the following experimental observations (...
2 votes
1 answer
277 views

Does the Apéry-like sequence $A_n=(n!)^2\sum_{k=0}^n { \rho \choose k}^2 { \rho+n-k \choose n-k}, \rho=e^{2 \pi i/3}$ change signs infinitely often?

This is an integer sequence OEIS sequence A217703. It satisfies an order 3 recurrence which is the constant term $A_n=u_n(0)$ of a three term recurrent sequence of polynomial defined by $$u_0(x)=1,u_1(...
4 votes
2 answers
611 views

Ask for a generating function or an explicit expression of a triangle of positive integers

Preliminaries I encountered the following triangle of positive integers: $c_{n,k}$ $n=1$ $n=2$ $n=3$ $n=4$ $n=5$ $n=6$ $n=7$ $n=8$ $k=0$ $1$ $3$ $15$ $105$ $315$ $3465$ $45045$ $45045$ $k=1$ $5$ $...
6 votes
1 answer
315 views

Integral points of polynomials - a Furstenburg-type "topology" on $\mathbb{Z}$

Given $S \subseteq \mathbb{C}$, define $\displaystyle \mathfrak{c}(S) = \bigcap_{p(x) \in \mathbb{C}[x] \wedge p(S) \subseteq \mathbb{Z}}p^{-1}(\mathbb{Z}) \supseteq S$ ("the integral points ...
6 votes
1 answer
173 views

$\omega$-de-Bruijn sequences

Let $\omega$ denote the set of non-negative integers. For which integers $n>1$ is there a sequence $b_n: \omega\to\omega$ with the following property? Whenever $v\in\omega^n$ there is a unique $...
10 votes
0 answers
252 views

Permutation of positive integers

Let $a_n$ be a sequence such that $a_1=1$ and for each $n \geq 1$ $a_{n+1}$ is the smallest positive integer distinct from $a_1,a_2,...,a_n$ such that $\gcd(a_{n+1}a_n+1,a_i)=1$ for each $i=1,2,...,n$....
1 vote
0 answers
153 views

A new Conjecture at OEIS sequence A376842

Here is a new conjecture of mine from the appendix of an unpublished manuscript currently under review. Let $b \in \mathbb{Z}^+$ and assume that $n$ is an integer greater than $1$ and not a multiple ...
1 vote
0 answers
82 views

Generating functions related to generating function of Catalan numbers

Let $C_n$ be A000108 (i.e., Catalan numbers). Here generating function is $C(x)$ such that $$ C(x) = \frac{1-\sqrt{1-4x}}{2x}. $$ Let $a(n)$ be an integer sequence with generating function $A(x)$ such ...
1 vote
0 answers
84 views

Coarse well-distributedness/equidistribution of Pell sequence prefixes

I am interested in the distributedness or "mixing" behavior of certain linear recurrences modulo powers of $2$. In particular, consider the Pell sequence (https://oeis.org/A000129), modulo $...
3 votes
1 answer
435 views

What is the connection between these three methods of generating this sequence?

I was recently looking at this problem: “There are a number of balls in a jar, some of them red, some of them white. The odds of picking two at random and both balls being red is 1/2. How many of the ...
6 votes
0 answers
171 views

An inequality involving integer partitions

For integers $n\ge k\ge0$, let $p(n,k)$ denote the number of ways to write $n$ as a sum of $k$ positive integers (repetition allowed). For example, $p(6,3)=3$ since $$6=1+1+4=1+2+3=2+2+2.$$ QUESTION. ...
4 votes
1 answer
241 views

Do there exist prime numbers of the form $n \cdot 2^n + 1$, when $n \in \mathbb{N}$ and $n > 1$?

Recently, I was studying prime sequences of the form $k \cdot 2^n + 1$, and I noticed that primes of the form $n \cdot 2^n + 1$ almost do not exist, except for the $n = 1$ case. Are there other prime ...
5 votes
0 answers
183 views

On the polynomials $\sum_{k=0}^n\binom{n+k}k^m q^k$

A sequence of polynomials $$P_0(q),\ P_1(q),\ P_2(q),\ \ldots$$ with real coefficients is called $q$-log-convex if for each $n=1,2,3,\ldots$ every coefficient of the polynomial $P_{n+1}(q)P_{n-1}(q)-...
2 votes
0 answers
76 views

upper and lower bounds on rowlands sequence

rowlands sequence is defined as follows \begin{equation} a_{n}=a_{n-1} + b_{n} \end{equation} where $b_{n} = gcd(a_{n-1}, n)$ for $n>h$ it originates from E. Rowlands 2008 paper "A Natural ...
2 votes
0 answers
62 views

Algorithm for main diagonal of integer coefficients associated with Schroeder numbers

Let $T_q(n, k)$ be an integer table such that $$T_q(n, k) = \begin{cases} 1 & \textrm{if } n = 0 \vee k = 0 \\ qT_q(n-1, n-1) + T_q(n, n-1) & \textrm{if } n = k > 0 \\ T_q(n, k-1) + T_q(n-1,...
1 vote
0 answers
60 views

On the parity of $(2^{\varphi(n)}-1) \bmod{n^2}$

For odd integer $n$ define the function $$ J(n)=(2^{\varphi(n)}-1) \bmod{n^2}$$ $J(n)$ is integer in $[0,n^2-1]$ and it is divisible by $n$. Integer $n$ is Wieferich number iff $J(n)=0$ and if $n$ is ...
5 votes
1 answer
172 views

On vanishing of $p$-adic logarithms

Might be related to Wieferich primes. Let $p$ be odd prime and define the Fermat quotient $$F(n)=\frac{(2^{n-1} -1)}{n} \mod n=\frac{(2^{n-1} \bmod n^2 )-1}{n}$$ For integer $b$ let $L_p(b)$ be the $p$...
1 vote
0 answers
106 views

Simpler recursion for the A358612

Let $T(n,k)$ be an integer coefficients (A358612) such that $$ T(2n+1, k) = kT(n, k) + T(n, k-1), \\ T(2n, k) = kT(n, k) + T(n, k-1) - \frac{T(2n, k-1) + T(n, k-1)}{k-1}, \\ T(n, 1) = T(0, 2) = 1 $$ ...
6 votes
1 answer
282 views

Integer sequences with a periodic pattern

Let $A$ and $B$ be two different integers. Let $S$ be a finite integer sequence with exactly $n_A$ $A$s and $n_B$ $B$s. By repeating $S$ infinitely many times we obtain an infinite integer sequence $P$...
2 votes
1 answer
217 views

Number of distinct higher dimensional integer partitions

By a distinct partition, I mean a partition into distinct parts, i.e., $10 = 5+4+1$ is one, but $10=6+2+2$ is not. The number of distinct partitions of $k$ all whose parts are at most $n$ is given by ...
6 votes
2 answers
389 views

Conjectured Somos-like closed form of recurrences with polynomial coefficients

From Our short paper For polynomial $F$ with integer coefficients, define the recurrence $f(n)=F(n,f(n-1),f(n-2),...,f(n-d))$. We conjecture that $f(n)$ satisfy Somos like sequence $f(n)=\frac{G(f(n-1)...
2 votes
0 answers
28 views

On doubling or addition formulas for the sequence $a(n)=(b_1 n +b_2)a(n-1)+(b_3 n + b_4)a(n-2)$

We are interested which integer sequences are efficiently computable possibly over finite rings. Define the integer sequence $a(n)=(b_1 n +b_2)a(n-1)+(b_3 n + b_4)a(n-2)$ with initial terms $a(0),a(1)$...
1 vote
0 answers
168 views

Integer coefficients and integrals

Let $a(n,p,q)$ be the family of integer sequences such that exponential generating functions for it satisfy $$ A_1(x)=\exp\left(x + p\int\int (A_1(x))^q \, dx \, dx\right). $$ Let $b(n,p,q)$ be the ...
3 votes
1 answer
329 views

Nonexistence of short integer program sequence which generates squares

Is there a way to show within an integer program with constant number of variables and constraints of length $poly(\log B)$ (say length $\leq10^{1000000}\log B$), it is not possible for a variable to ...
0 votes
0 answers
28 views

Short periods modulo primes of linear recurrences with polynomial coefficients

Let $f_i(x)$ be polynomials with integer coefficients. Define the integer linear recurrence with polynomial coefficients: $$ a(n)=f_1(n) a(n-1)+f_2(n)a(n-2)+\cdots +f_d(n) a(n-d) $$ and the initial ...
0 votes
0 answers
55 views

Sequences that sum up to sums of integer coefficients

Let $$ T(n,k,p,q,r,s) = (q(k-1)+1)T(n-1,k,p,q,r,s) + s(n+r(k-1)+p-2)T(n-1,k-1,p,q,r,s), \\ T(n,1,p,q,r,s) = 1, \\ T(n,0,p,q,r,s) = T(0,k,p,q,r,s) = 0 $$ Let $$ \ell(n) = \left\lfloor\log_2 n\right\...
1 vote
1 answer
221 views

Correctness of the algorithm for the A329369, A347205 and related sequences

Let $a(n)$ be A347205. It is enough for us to know that $$ a(2^m(2k+1)) = \sum\limits_{j=0}^{m}a(2^jk), \\ a(0) = 1 $$ Let $b(n)$ be A329369. It is enough for us to know that $$ b(2^m(2k+1)) = \sum\...
2 votes
1 answer
216 views

Simplification of the closed form for the A329369

Let $s(n,k)$ be a (signed) Stirling number of the first kind. Let ${n \brace k}$ be a Stirling number of the second kind. Let $$ f(n,m,i) = (-1)^{m-i+1}\sum\limits_{j=i}^{m+1}j^n s(j,i) {m+1 \brace ...
33 votes
2 answers
856 views

A sequence potentially consisting of only integers

I will first ask the question which can be stated very simply. Afterwards I will explain some motivation and give references to related sequences. Consider the sequence defined by $$b_n = \frac{(...
1 vote
1 answer
173 views

Some ideas about parking functions and integer partitions

We know that a integer partition of $\lambda=(\lambda_1, ..., \lambda_m)$ of $n$ satisfying $\lambda_1\geq \cdots \geq \lambda_m$ and $\sum_{i=1}^m\lambda_i=n$. Let $\mathcal{P}(n)$ be the set of ...
1 vote
0 answers
133 views

Sequence that sums up to A000153

Let $a(n)$ be A329369 (i.e, number of permutations of ${1,2,...,m}$ with excedance set constructed by taking $m-i$ ($0 < i < m$) if $b(i-1) = 1$ where $b(k)b(k-1)\cdots b(1)b(0)$ ($0 \leqslant k ...
7 votes
1 answer
286 views

On nontotient Fibonacci numbers

This question is related to sequence of numbers $t$ such that $F_{6t}$ is a nontotient where $F_n$ represents the sequence of Fibonacci numbers for $n\geq 0$. The online encyclopedia Wikipedia has the ...
1 vote
0 answers
115 views

Representing A329369 using A358612

Let $a(n)$ be A329369 (i.e., number of permutations of $\{1,2,\dotsc,m\}$ with excedance set constructed by taking $m-i$ ($0 < i < m$) if $b(i-1) = 1$ where $b(k)b(k-1)\cdots b(1)b(0)$ ($0 \...
4 votes
1 answer
148 views

Closed form for the A110501 (unsigned Genocchi numbers (of first kind) of even index)

Let $a(n)$ be A110501 (i.e., unsigned Genocchi numbers (of first kind) of even index). Here $$ a(n) = \sum\limits_{i=1}^{\left\lfloor\frac{n}{2}\right\rfloor}\binom{n}{2i}a(n-i)(-1)^{i-1}, \\ a(1) = 1 ...
3 votes
0 answers
128 views

Fast and simple algorithm for the A329369

Let $a(n)$ be A329369 (i.e., number of permutations of $\{1,2,\cdots,m\}$ with excedance set constructed by taking $m-i$ ($0 < i < m$) if $b(i-1) = 1$ where $b(k)b(k-1)\cdots b(1)b(0)$ ($0 \...
6 votes
0 answers
245 views

Searching for a proof of the pattern and identification of integer coefficients for the A329369

Please see the update given below. Everything you need to know from the old version of the question are the functions $a(n), \ell(n), s(n), t(n), r(n)$. Let $a(n)$ be A329369 (i.e, number of ...
5 votes
0 answers
307 views

On $s$-additive sequences

For a non-negative integer $s$, a strictly increasing sequence of positive integers $\{a_n\}$ is called $s$-additive if for $n>2s$, $a_n$ is the least integer exceeding $a_{n-1}$ which has ...
16 votes
2 answers
2k views

Does this sequence ever end?

This may help: A080670 A195265 Define $f(n)$ as this: Take a number $n$, and split it into its prime composition using $^$ and $×$. Now remove all $^$ and $×$, you get a new number, this is $f(n)$ (...
2 votes
0 answers
157 views

Conjecture: $x^4+1$ is never Wieferich prime

Related to this question and Alexander Kalmynin's answer. For natural $n$ define $J(n)=(2^{n-1}-1) \bmod n^2$ and if $n$ is power of two define $J(2^n)=1$ (this is artificial, just to avoid triviality ...
6 votes
1 answer
393 views

Test for pair of odd primes $(p, 2p^2-1)$

Let $a(n)$ be A106483 (i.e., primes $p$ such that $2p^2-1$ is also prime). Let $b(n)$ be an integer sequence such that $b(n) = B$ after the whole transformation where we start with $A = n$, $B = 1$, $...
6 votes
1 answer
367 views

On A057985 and A287066

Let $a(n)$ be A057985 (i.e., start with $0$ and repeatedly substitute: $0 \to 01$, $1 \to 12$, $2 \to 0$). Let $b(n)$ be A287066 (i.e., start with $1$ and repeatedly substitute: $0 \to 01$, $1 \to 12$...
1 vote
1 answer
77 views

Sequence derived from transform of a given vector (with Fibonacci as partial sums)

Let F_n be A000045 (i.e., Fibonacci numbers). Here $$ F_n = F_{n-1} + F_{n-2}, \\ F_0 = 0, F_1 = 1 $$ Let $\operatorname{wt}(n)$ be A000120 (i.e., number of ones in the binary expansion of $n$). ...
6 votes
1 answer
438 views

The largest digital sum of the square of an n-digit number

The sequence $13, 31, 46, 63, 81, 97, 112, 130, 148, 162, 180, \dots,$ (sequence A348300 in the OEIS) shows the largest digital sum the square of an $n$-digit (decimal) number has. Is this sequence ...
2 votes
1 answer
131 views

Sequence that sums up to A224071

Let $a(n)$ be A224071 (i.e., number of Schroeder paths of semilength $n$ in which there are no $(2,0)$-steps at level $1$). Here $$ a(n) = \frac{1}{2(n+1)}\sum\limits_{k=0}^{n}(k+1)((-1)^{\left\...
2 votes
0 answers
110 views

bijection from vectors with non-negative integer integer entries to integers

I have the following question. Given a natural number $N$ we construct a set $K$ of vectors of infinite length with non-negative integer entries with a given sum $N$. For example, for $N=3$ the set $K$...
2 votes
2 answers
242 views

Negated Fibonacci and the floor function

Let $F_n$ be A000045 (i.e., Fibonacci numbers). Here $$ F_n = F_{n-1} + F_{n-2}, \\ F_0 = 0, F_1 = 1, \\ F_{-n} = (-1)^{n-1}F_n $$ I conjecture that $$ F_{-n} = \left\lfloor\frac{n+1}{2}\right\rfloor ...
2 votes
1 answer
261 views

Small solutions of $x^2-a^3 y^2=\pm 1$

We are interested in small integer solutions to the Pell equation: $$x^2-a^3 y^2=\pm 1 \qquad (1)$$ Where in $\pm 1$ you can chose either sign. $(x^2,a^3 y^2)$ are consecutive powerful numbers. $abc$ ...
0 votes
0 answers
190 views

On a A057985 without recursion

Let $a(n)$ be A057985 (i.e., start with $0$ and repeatedly substitute: $0\to01, 1\to12, 2\to0$). Let $\operatorname{wt}(n)$ be A000120 (i.e., number of ones in the binary expansion of $n$). Here $$ \...

1
2 3 4 5
8