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 7076

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

14 votes

Examples of integer sequences coincidences

Just another instance of the (second) Strong Law of Small Numbers: We have A157656(n) = A059100(n-1) for all known terms (i.e., $n\leq 6$), but it's also known that A157656(29) > A059100(28). So, the …
14 votes
Accepted

When is $\mathrm{gcd}(k,p^k-1)=1$ true?

It is easier to describe non-good (bad) numbers with respect to a given prime $p$. For each such number $k$, there exists a prime $q$ such that $q\mid k$ and $q\mid (p^k - 1)$. It follows that $k$ is …
Max Alekseyev's user avatar
9 votes

On the primality of $j(n)=\varphi(p_n+1-n)+1$ when $j(n) \equiv 19 \pmod {100}$

Since $j(n)\equiv 19\pmod{100}$, we have $\varphi(p_n+1-n)\equiv 18\pmod{100}$ meaning that $\nu_2(\varphi(p_n+1-n))=1$. That is, $p_n+1-n$ is $q^k$ or $2q^k$ for a prime $q\equiv 3\pmod4$. If $k=1$, …
Max Alekseyev's user avatar
8 votes

Avoiding equality of partial sums of two different aperiodic sequences

Let one sequence be randomly sampled from $\{2,4\}$, and the other obtained similarly after setting the first element to 1. Then these sequences are not periodic and have pairwise distinct partial sum …
Max Alekseyev's user avatar
7 votes

Is OEIS A007018 really a subsequence of squarefree numbers?

Prime factors below $10^{10}$ of $a_n$ can be found in OEIS A007996, and I've tested that none of them divides $a_n$ when squared. Same was reported by Andersen earlier for primes below $2^{32}$. In …
Max Alekseyev's user avatar
6 votes

Alternating binomial-harmonic sum: evaluation request

Denote the sum in question by $f(b,n)$, then $$\sum_{b,n\geq 0} f(b,n) y^b z^n = \frac{\log(1+y)\log(1-\frac{yz}{1-z})}{1-z-yz}.$$
Max Alekseyev's user avatar
6 votes

sum of odious numbers to the power of k

I think there is no simple formula here, although we can get some recurrence relations and related identities for generating functions as explained below. Similarly to odious numbers, we have evil nu …
Max Alekseyev's user avatar
6 votes
Accepted

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

Below I will prove that the proposed test is necessary, that is, if $k\in\text{A106483}$ then $b(2k+1)=6k$. Following the simplification proposed by Will Sawin in the comments, the test for a given od …
Max Alekseyev's user avatar
4 votes

A conjecture harmonic numbers

The sequence OEIS A260695 can be seen as the interweaving of nonzero Hultman numbers $\mathcal{H}(n,k)$ for $k=1$ and $k=2$. Namely, $$a(n) = \mathcal{H}(n,1+(n\bmod 2)).$$ It is known that $\mathcal{ …
Max Alekseyev's user avatar
4 votes
Accepted

Why do convoluted convolved Fibonacci numbers pop up from this triangle?

We have $$T(n,k) = [x^ny^{n-k}]\ \frac{2 - (1+y)x}{1-(1+y)x-x^2}=[y^{n-k}]\ L_n(1+y),$$ where $L_n$ is the $n$-th Lucas polynomial. For $k<n$, we have an explicit formula: \begin{split} T(n,k) &= \sum …
Max Alekseyev's user avatar
4 votes

Non-Wieferich primes with Euler quotient modulo $p$ two and alternating harmonic numbers

While no composite terms of A128465 are known, here is a proof that an odd prime $p$ belongs to A128465 if and only if $b(p)\equiv 2(-1)^{\tfrac{p+1}2}\pmod{p}$. First notice that for an odd prime $p$ …
Max Alekseyev's user avatar
4 votes
Accepted

Why does this "factorial sequence" appear in the OEIS?

We have $$\frac{1}{x}f(\frac1x) = \sum_{n\geq 1} (F_{2n-3}-1)x^n,$$ where $F_{2n+1}$ are Fibonacci numbers. Per answers to your previous question, it follows that $$c_{n+1} = \sum_{i=0}^n s(n,i) (F_{2 …
Max Alekseyev's user avatar
4 votes
Accepted

Simplification of the closed form for the A329369

As it was noted in another answer, we have $$f(n,m,i) =[\tfrac{x^n}{n!}\tfrac{y^{m+1}}{(m+1)!}]\ \frac{\big(-\log(1+e^x(e^{-y}-1))\big)^i}{i!}.$$ The linked answer essentially establishes the same rec …
Max Alekseyev's user avatar
3 votes

The sequence $a(n)=(2^n \bmod p)^{p-1} \bmod p^2$

Using the notation from my answer to the previous question, we have $$D(n+1)−(D(n+2)+1)\not\equiv 0\pmod{p}$$ if and only if $g_0(n+2) = 2 g_0(n+1) - p$ and $g_1(n+2) \equiv 2 g_1(n+1) + 1\pmod{p}$, i …
Max Alekseyev's user avatar
3 votes

What is this sequence counting?

Notice that $P(n-1)$ counts the number of partition of $n$ that contain $1$, while $P(n-2)$ counts the number of partition of $n$ that contain $2$. It follows that $P(n-1)+P(n-2)-P(n)$ equals the di …
Max Alekseyev's user avatar

15 30 50 per page