« first day (2040 days earlier)      last day (1369 days later) » 

12:25 AM
4
Q: Injective integer polynomial is injective modulo some prime

crisprLet $Q\in \mathbb{Z}[x]$ be a polynomial defining an injective function $\mathbb{Z}\to\mathbb{Z}$. Does it define an injective function $\mathbb{Z}/p\mathbb{Z}\to\mathbb{Z}/p\mathbb{Z}$ for some prime $p$?

 
 
5 hours later…
5:43 AM
7
Q: Size of reference to std::array not available at compiletime

Jacob MersonI'm interested to know why the second static_assert in my code below doesn't work. It seems like even though the array c is a reference to a, the size of the array is embedded in the type, so it should be available at compile time. #include <array> int main() { std::array<int,2> a = {1,2}; ...

 
 
13 hours later…
6:25 PM
14
Q: Why define a struct with single private field of unit type?

m-batI do not know why struct ParseBoolError has the _priv field, as shown below: pub struct ParseBoolError { _priv: (), } https://doc.rust-lang.org/src/core/str/mod.rs.html#150 I think that the _priv field is not used.

 
7:25 PM
1
Q: What OEIS sequence is this?

A ZI've come up with an idea of an integer sequence. It can be formulated (perhaps a bit loosely) as follows: For n points N(n) is the number of configurations where each point either lies on some circle or is a center of some circle. Each point can belong to no more than 1 circle and it can be th...

 
 
3 hours later…
10:25 PM
4
Q: Complex eigenvalues of a matrix in conjugate pairs (or not)

guneI have learnt that in a matrix, if there are complex eigenvalues, they should come as conjugate pairs. Also, I know that, in a diagonal matrix, eigenvalues are the diagonal elements. So how about the following matrix? $$\begin{pmatrix} i & 0\\ 0& 2 \end{pmatrix}$$ Shouldn't the eigenvalues be $...

 

« first day (2040 days earlier)      last day (1369 days later) »