Search Results
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 |
For questions about sequences of integers. References are often made to the online resource oeis.org.
1
vote
Discrete logarithm and the sequence $a(n)=(g^n \bmod p)^{p-1} \bmod p^2$
Q1 is too vague, so let me answer Q2 and Q3.
Assume that a prime $p$ and a primitive root $g$ modulo $p$ are fixed.
Let $g_0(n) := g^n\bmod p$, $g_1(n) := \frac{g^n - g_0(n)}{p}\bmod p$, and $c := g_1 …
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 …
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 …
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 …
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 …
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 …
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$, …
3
votes
Six consecutive positive integers with certain shape
This is just to show that in sextuples of interest $2x^2 - 3y^2 = -1$, while difference $2$ is not possible.
First note that neither $|2x^2-2y^2|<6$ nor $|3x^2-3y^2|<6$ is soluble in distinct positive …
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}.$$
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$ …
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 …
2
votes
On nontotient Fibonacci numbers
I've extended OEIS A335976 with many terms.
The numerical data so far is in favor of the conjecture, although I think it may be hard to prove it rigorously.
Still, we can note a few major factors that …
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 …
3
votes
Conjectured Somos-like closed form of recurrences with polynomial coefficients
This is just an extended comment.
There is no need to invoke the algebraic dependency search. The recurrence can be found by directly constructing Groebner basis $B$ under any term order, in which $n$ …
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{ …