Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
0 answers
57 views

Step back step forward algorithm for A108442

Let $a(n)$ be A108442. Here generating function is $\frac{1}{1-zA(z)}$ where $$ A(z) = 1 + z(A(z))^2 + z(A(z))^3. $$ Also $$ a(n) = \sum\limits_{k=1}^{n}\frac{k}{2n-k}\sum\limits_{i=0}^{n-k} \binom{2n-...
Notamathematician's user avatar
2 votes
0 answers
182 views

Algorithm for $\frac{1}{1-x} = \sum\limits_{n=0}^{\infty}a(n)x^n\prod\limits_{k=1}^{n}\frac{1-kx}{1+kx}$

Let $a(n)$ be A208832. Here $$ \frac{1}{1-x} = \sum\limits_{n=0}^{\infty}a(n)x^n\prod\limits_{k=1}^{n}\frac{1-kx}{1+kx}. $$ Start with vector $\nu$ of fixed length $m$ with elements $\nu_i = 1$ (that ...
Notamathematician's user avatar
1 vote
0 answers
161 views

Efficient algorithm for A217061

Let $a(n)$ be A217061. Here $$ a(n) = \sum\limits_{m=1}^{n}\frac{1}{(m-1)!}\sum\limits_{k=0}^{n-m}(n+k-1)!\sum\limits_{j=0}^{k}\frac{1}{(k-j)!}\sum\limits_{\ell=0}^{j}\frac{2^{\ell-j}(-1)^{\ell+j}s(n-...
Notamathematician's user avatar
0 votes
0 answers
64 views

Algorithm and equivalent recursion for A258173 (related to Dyck paths)

Let $a(n)$ be A258173 i.e. sum over all Dyck paths of semilength $n$ of products over all peaks $p$ of $y_p$, where $y_p$ is the $y$-coordinate of peak $p$. A Dyck path of semilength $n$ is a $(x,y)$-...
Notamathematician's user avatar
0 votes
0 answers
60 views

Algorithm for $q$-Bell numbers

Let $T(n,k)$ be A126347 (i.e., triangle, read by rows, with row polynomials $B(n, q)$). Here $$ B(n, q) = \sum\limits_{k=0}^{n-1}\binom{n-1}{k}B(k, q)q^k, \\ B(0, q) = 1. $$ Start with vector $\nu$ of ...
Notamathematician's user avatar
1 vote
1 answer
178 views

Algorithm for A127782

Let $a(n)$ be A127782 (i.e., an integer sequence with generating function $A(x)$ such that $A(x)=1+xA(x+x^2)$). Here $$ a(n) = \sum\limits_{k=0}^{\left\lfloor\frac{n-1}{2}\right\rfloor} \binom{n-k-1}{...
Notamathematician's user avatar
2 votes
0 answers
61 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,...
Notamathematician's user avatar
3 votes
1 answer
178 views

Algorithm for the sum with binomial coefficients and Bell numbers

Let $a(n)$ be A000110 (i.e., Bell or exponential numbers: number of ways to partition a set of $n$ labeled elements). Let $b(n)$ be A355247 (i.e., expansion of exponential generating function $\exp(2(\...
Notamathematician's user avatar
4 votes
1 answer
112 views

On a number of compositions of $n$ into positive triangular numbers

Let $a(n)$ be A023361 (i.e., number of compositions of $n$ into positive triangular numbers). Here $$ a(n) = \sum\limits_{i \geqslant 1, \frac{i(i+1)}{2}\leqslant n} a(n-\frac{i(i+1)}{2}), \\ a(0) = 1....
Notamathematician's user avatar
1 vote
0 answers
121 views

Simple algorithm for A107670

Let $T(n, k)$ be A107670 (i.e., matrix square of triangle A107667). Here we define the triangular matrix $P$ by $P(n, k) = \frac{(n+1)^{2(n-k)}}{(n-k)!}$ for $0 \leqslant k \leqslant n$ and the ...
Notamathematician's user avatar
4 votes
1 answer
130 views

Intersecting algorithm for A065601

Let $a(n)$ be A065601 (i.e., number of Dyck paths of length $2n$ with exactly $1$ hill). Here $$ a(n) = \frac{1}{2(n+1)}((3n-2)a(n-1) + 2(9n-19)a(n-2) + 4(2n-3)a(n-3)), \\ a(0) = a(2) = 0, a(1) = 1. $$...
Notamathematician's user avatar
3 votes
0 answers
165 views

Elegant algorithm for A140717

Let $T(n, k)$ be A140717 (i.e., triangle read by rows: $T(n,k)$ is the number of Dyck paths $d$ of semilength $n$ such that sum of peakheights of $d$ - number of peaks of $d$ equals $k$ ($n \geqslant ...
Notamathematician's user avatar
2 votes
0 answers
64 views

On a $\sum\limits_{n=0}^{\infty}c_n x^n=\sum\limits_{n=0}^{\infty}a(n)x^n\prod\limits_{k=1}^{n+1}(1-f(k)x^k)$ (slightly different question)

Please note that this question differs from one of the previous questions of mine. Let $f(n)$ be an arbitrary function with integer values. Let $c_n$ be an arbitrary integer sequence. Let $a(n)$ be ...
Notamathematician's user avatar
9 votes
0 answers
258 views

On a continued fraction and vector $\nu$ of length $n$

Please note that this question has been completely reworked in order not to overload it with unnecessary and useless information. Let $f(n)$ be an arbitrary function with integer values. Let $a(n)$ ...
Notamathematician's user avatar
2 votes
0 answers
100 views

Another (unique) algorithm for the A329369

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 ...
Notamathematician's user avatar
1 vote
0 answers
83 views

Non-vanishing of product of zero divisors in quotients modulo $n$

This might be of practical importance and even partial answer will help. Let $n$ be odd squarefree integer with known factorization $n=\prod p_i$ with $N$ prime factors. Later we are not asking about ...
joro's user avatar
  • 25.4k
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 \...
Notamathematician's user avatar
1 vote
1 answer
217 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\...
Notamathematician's user avatar
3 votes
1 answer
194 views

Checking presence of a specific term in product polynomial

I have a multivariate polynomial $P$ which is a product of $M$ low degree polynomials $p_i$ $$P(x_1, x_2, \dotsc, x_n) = \prod_{i=1}^M p_i(x_1, x_2, \dotsc, x_n)$$ where the maximum degree of each $...
Math-fort's user avatar
  • 103
4 votes
1 answer
209 views

Finding a binary variable assignment to make a matrix with variables singular (over F_p)

Consider a square matrix defined over a finite field $M\in\mathbb{F}_p^{n\times n}$ having the following form $$M=\begin{bmatrix}a_{11}+b_{11}x_1&a_{12}+b_{12}x_1&\dots&a_{1n}+b_{1n}x_1\\...
Tippisum's user avatar
  • 153
1 vote
0 answers
209 views

Solution to system of linear equations

Input: System of linear equations $$A[x_1,\dots,x_{t}]=b$$ where number of equations is at least number of variables but independence is not guaranteed. However there is atmost one non-negative ...
Turbo's user avatar
  • 13.9k
2 votes
0 answers
135 views

Writing integers as sequences of products by 2 and integer divisions by 3

For any integer, we consider its decompositions into sequences of products by $2$ and integer division by $3$. For instance: $$ 100 = 2 \cdot 2 \cdot 2 \cdot 2 \cdot 2 \cdot 2 \cdot 2 \cdot 2 \cdot 2 \...
Matthieu Latapy's user avatar
5 votes
1 answer
218 views

Computational version of inverse sumset question

Let $p$ be prime and $\mathbb{F}_p$ the finite field with $p$ elements. Suppose we have a set $B\subseteq \mathbb{F}_p$ satisfying $|B|<p^{\alpha}$ for some $0<\alpha<1$ and there exists $A\...
user avatar
0 votes
3 answers
1k views

Given $N$ integers on a circle, how to choose them in pairs to obtain minimum sum?

(Added by YCor 2019 July 7): it has been mentioned in the comments that this is part of a contest "Circular merging, July Challenge 2019 Division 1", where an equivalent question (just more clearly ...
user avatar
1 vote
0 answers
104 views

Distinct sums for edge weights

For each $n\geq1$, consider a special tree with $2n+1$ nodes which are assigned values $a_i$ from the set $\{0,0,1,2,3,\dots,2n-1\}$. Only $0$ can be a repeated assignment. The edges are only the ones ...
T. Amdeberhan's user avatar
4 votes
1 answer
96 views

Separate the trivial partition by a linear hyperspace

Let $e=[1,1,\ldots,1]\in\mathbb{Z}^n$. I am looking for a way to find a vector $a\in\mathbb{Z}^n$ such that: $\langle a,e\rangle=0$ and for every nonnegative $v\in\mathbb{Z}^n$ such that $\langle e,v\...
Adam Przeździecki's user avatar
2 votes
1 answer
199 views

Decide if a system of arithmetic sequences is an $m$-cover of $\mathbb{N}$

Let $A = \{ a_i + b_i \mathbb{N} \}_{i=1}^{k}$, where $a_1, \ldots, a_k \in \mathbb{N} \cup \{0\}$ and $b_1, \ldots, b_k \in \mathbb{N}$ be a system of arithmetic sequences. For a positive integer $m$...
Victor's user avatar
  • 655
6 votes
4 answers
552 views

(Non)uniqueness of the common-factor graph

Let $S=\{x_1,\ldots,x_k\}$ be a set of $k$ distinct natural numbers, a subset of $\{1,\ldots,n\} = \mathbb{N}_{\le n}$. Define the common-factor graph $G(S)$ as the (undirected) graph with a node for ...
Joseph O'Rourke's user avatar
2 votes
1 answer
240 views

valuation from $\mathbb{Z}^n$ into $\mathbb{Z}$. Easy way?

Let $\mathcal{F}:=\{f_a\}_{a\in\mathbb{Z}}$ be a set of symbols indexed by the integers and satisfying the rules: $$f_a=f_{-a} \qquad \text{and} \qquad f_af_b=f_{a+b}+f_{a-b}.$$ Define a linear ...
T. Amdeberhan's user avatar
5 votes
1 answer
255 views

Is this subset-sum-type problem discussed in the literature?

Let $y \in \mathbb{Z}_+^n$, with $y_1 < \dots < y_n$. I am interested in finding a 0-1 matrix $A$ and $x \in \mathbb{Z}_+^m$ s.t. $m$ is minimal and $Ax = y$, where I am guaranteed that at least ...
Steve Huntsman's user avatar
5 votes
1 answer
275 views

How to generate $n$ FP32 rationals s.t. no two distinct k-el. subsets have same sum?

First some Background: I have lots and lots of integer matrices, whose rows are $k$-combinations (without repetitions and sorted) of numbers from the set $S:=\{1,...,n\}$ and needed to be compared ...
M.G.'s user avatar
  • 7,127
4 votes
0 answers
215 views

What is the function like when its Mobius inversion is $\sum_{w|r, (w,t)=1}\mu(w)q^{r/w}$?

Everyone, I am now reading a paper named The Irreducible Factors of $(cx+d)x^{q^m}-(ax+b)$ over $GF(q)$, http://qjmath.oxfordjournals.org/content/14/1/61.extract. And I’m confused with one of its ...
a guest's user avatar
  • 41
4 votes
1 answer
493 views

Can we count primes in residue classes quickly?

Using combinatorial methods (due to Legendre, Lehmer, Meissel, Lagarias, Miller, Odlyzko, Deléglise, Rivat, and probably others) it's possible to count the number of primes up to $N$ quickly -- in ...
Charles's user avatar
  • 9,114
10 votes
3 answers
649 views

Efficiently getting bits of N! ?

Given $N$ and $M$, is it possible to get the $M$'th bit (or digit of any small base) of $N!$ in time/space of $O( p( ln(N), ln(M) ) )$, where $p(x, y)$ is some polynomial function in $x$ and $y$? i.e....
dorkusmonkey's user avatar