Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 46140
1 vote

Linear recurrence period of GF(p) for prime P

Expressing the linear recurrence in matrix form as $$\begin{bmatrix} a_{n+k+1} & a_{n+k} \\ a_{n+k} & a_{n+k-1} \end{bmatrix} = \begin{bmatrix} s & t \\ 1 & 0 \end{bmatrix}^k \begin{bmatrix} a_{n+1} & …
Peter Taylor's user avatar
  • 7,226
2 votes

Solving a recurrence relation for the prime counting function?

It turns out to be more straightforward than I expected. Let $C(z) = \sum_{i \ge 0} c_i z^i$ be the g.f. for $c_i$, excluding $c_{-1}$ since that doesn't show up in your recurrence. Starting with $$\f …
Peter Taylor's user avatar
  • 7,226
1 vote

Recurrence relation with two variables

The solutions look like a mess, so it's not too surprising that you always end up with one. If we follow Iosif Pinelis in dividing all by the last constraint by $\lambda$ and substituting $r = \frac{1 …
Peter Taylor's user avatar
  • 7,226
8 votes
Accepted

Subsequence of the cubes

Experimenting with a CAS suggests an induction. In order to handle the induction, we need to consider the forms of the numbers involved. $\frac{4^m-1}{3} = 1 + 2^2 + 2^4 + \cdots + 2^{2m-2}$ alternate …
Peter Taylor's user avatar
  • 7,226
3 votes
Accepted

Stern-Brocot tree and subtree

The second half is already given in the question, so really what you're asking is whether $$b(2n-1)=b(2n-3)+b(n-1)-2(b(2n-3)\bmod b(n-1))$$ But as noted in OEIS (quoted with relabelling), Moshe Newma …
Peter Taylor's user avatar
  • 7,226
1 vote
Accepted

Recurrence for the number of steps required to get one ball in each box

Generalise $a$: $a(n, k)$ is the number of steps to perform this process with $n+k$ boxes and balls starting with $n \ge 1$ balls in the first box and one ball each in the next $k$ boxes. Then the ori …
Peter Taylor's user avatar
  • 7,226
1 vote
Accepted

Sequences that sum up to Dowling numbers

Cleaning up the notation a bit, $$b_{m,k}(n) = m\, b_{m,k}(n-2^{\ell(n)}) + k \sum_{j=0}^{\ell(n)-1} [n \,\&\, 2^j = 0] \,b_{m,k}(n - 2^{\ell(n)} + 2^j)$$ where $\&$ is bitwise AND. $$s_{m,k}(n) = \su …
Peter Taylor's user avatar
  • 7,226
4 votes
Accepted

Property of some permutations of non-negative integers such that $a(n)<2^k$ iff $n<2^k$

I'm going to use $\operatorname{msb}$ (for most significant bit) as an alias of $f$. Since $q_i$ is a permutation, the property that $q_i(n)<2^k$ iff $n < 2^k$ is equivalent to $\operatorname{msb}(q_i …
Peter Taylor's user avatar
  • 7,226