Hot answers tagged


Theorem. If $2^n-1$ is prime then $n$ is prime. Proof. Suppose that $2^n-1$ is prime, and write $n=st$ where $s,t$ are positive integers. Since $$x^s-1=(x-1)(x^{s-1}+x^{s-2}+\cdots+1)\ ,$$ we can substitute $x=2^t$ to see that $2^t-1$ is a factor of $2^n-1$. Since $2^n-1$ is prime there are only two possibilities, $$2^t-1=1\quad\hbox{or}\quad 2^t-1=2^n-...


How about $\dfrac{i^n + (-i)^n}{2}$? (Of course, that is arguably just trigonometry in disguise). Or as a recurrence: $a_n = -a_{n-2}$ with $(a_0,a_1)=(1,0)$. Or $\begin{bmatrix}1 & 0\end{bmatrix}\begin{bmatrix}0&-1\\1&0\end{bmatrix}^n\begin{bmatrix}1\\0\end{bmatrix}$? (Which can be viewed as a better-disguised version of either of the two ...


All numbers of this kind are divisible by $11$. Consider prime $\mathit{abcdefg}$ where each letter is a digit. The number $\mathit{gfedcbaabcdefg}$ is divisible by $11$ because the alternating sum of digits is always zero: $$g - f + e - d + c - b + a - a + b - c + d - e + f - g = 0.$$


Eyebrow raising indeed, though the pattern does not continue as you suggest. I get $$ 0, 1, 1, 2, 3, 5, 7, 10, 16, 23, 37, 55, 84, 125, 198 $$ Remember that the the number of primes has a well known growth rate ( Since the Fibonacci numbers are relatively spread out, using $n/\log n$ to approximate the ...


As John's answer notes, every palindromic number with an even number of digits is divisible by $11$, because the alternating sum of its digits is zero (and thus a multiple of $11$). For example, for $81233218$, we have: $$8-1+2-3+3-2+1-8 = 0,$$ and so $81233218$ is divisible by $11$. The reason why this divisibility rule works is most easily seen using a ...


$5+8 = 13$ and twice $13$ is $26$, etc.


Note that for $m\ge 2$ $$2^{2m}-1=(2^m)^2-1=(2^m-1)(2^m+1)$$ is not a prime number.


Whether this is simplest will depend on exactly what you mean, but the following is a pretty simple description. It's certainly simpler than anything involving trig functions. $$a_n=\begin{cases} 0 & \text{if n is odd} \\ 1 & \text{if n is divisible by 4} \\ -1 & \text{otherwise} \end{cases}$$


\begin{align} 3^{27}=3(3^{26})=3(9^{13})& =3(10-1)^{13} \\ & \equiv 3((-1)^{13}+13(-1)^{12}(10)+\binom{13}{2}(-1)^{11}(10^2)) \pmod{1000} \\ & \equiv 3(-1+130-7800) \pmod{1000} \\ & \equiv 987 \pmod{1000} \\ \end{align} Edit: The same method (using binomial theorem) can easily be applied to $3^n$, even for large $n$. \begin{align} 3^{2n}=9^...


What could possibly be easier than $\Re(i^n)$, $n=0,1,\ldots$?


You can look up integer sequences at OEIS: So your sequence is "Numbers $n$ such that $6*10^n+1$ is prime". I assume you're looking for a formula, but if there was a closed-form expression for these numbers, we could find arbitrarily large prime numbers! The largest known prime has 12978189 digits and right now there is a 250,000 ...


As has been pointed out in the comments, this is not a special property of the primes. Rather it's true that whenever you reverse a number and append the result to itself, the result is always divisible by 11. To see why this is true, consider the number $A = 10^{n-1} a_{n-1} + 10^{n-2} a_{n-2} + \cdots + 10^0 a_0$, where $a_0, \ldots, a_{n-1}$ are all ...


$$\frac{1}{2} \left((-1)^{(n-1) n/2}+(-1)^{n (n+1)/2}\right)$$


I'm saying that $435$ is the answer to the question. Why? Consider the polynomial $$ p(x)=-\frac{3x^5}{2}+\frac{55x^4}{2}-\frac{375x^3}{2}+\frac{1175x^2}{2}-786x+525$$ Here is a table of values of $p(x)$ on consecutive $x$. $\begin{array}{|l|c|c|c|c|c|c|}\hline x & 1 & 2& 3& 4& 5&6\\ \hline p(x)&165&195&255&285&...


This is a fun observation... but I think you have a mistake. I wrote a quick python script to generate the fibonacci numbers and primes and make the counts and this is what I get: Between 5 and 8 there is 1 prime: 7 Between 8 and 13 there is 1 prime: 11 Between 13 and 21 there are 2 primes: 17, 19 Between 21 and 34 there are 3 primes: 23, 29, 31 ...


Nowadays, the #1 method for predicting the next number from a sequence (assuming the sequence has come up in a "natural" way) is to look it up in the Online Encyclopedia of Integer Sequences. In his 1973 book, A Handbook of Integer Sequences, Sloane gives some suggestions as to what to do if your sequence is not in the Encyclopedia/Handbook. These include, ...


In this case: consider sequence $$ a_n = 15 \cdot p_n, $$ where $p_n$ is $n$-th prime number. $a_n$: $\color{gray}{30, 45, 75, 105,} 165, 195, 255, 285, 345, \color{red}{435}, ...$


The ratio between Fibonacci numbers soon settles down to a number close to $1.618$. This number is called the Golden Ratio. You get an extra digit every time the Fibonacci numbers have increased by a factor 10. $1.618^4=6.854$ and $1.618^5=11.09$ Once the ratio settles down, you get at least one extra digit every five numbers. Sometimes the extra digit ...


I will probably be accused of pedantry for this answer, but I cannot help but point out that a question like this is not a math question. There are many sequences that begin 58, 26, 16, 14, 10. There are many patterns in the sequence 58, 26, 16, 14, 10, by which I mean that there are many computer programs that compute a sequence that begins this way, and ...


Your conjectured fact is true. Of any $3$ consecutive integers, one is divisible by $3$. If $2$ of the integers are a pair of twin primes neither of which is $3$, then neither of the "end" numbers is divisible by $3$. So the "middle" number must be divisible by $3$. So the twin primes are $3k-1$ and $3k+1$ for some integer $k$. It follows that their ...


If you have a sequence and have a linear recursion formula generating the sequence, then you can easily transform it into a closed form solution using one of many methods available. In your case let us start with the simplest recursion: $a_0=1,a_1=0,a_n=-a_{n-2},n\ge 2$. The easiest (if you have access to a computer) way to obtain a closed form solution is ...


The specific sequence is not essential. You are asking how to construct a function with period 4. Linear combinations of shifts of one $n$-periodic function can be used to write down any other $n$-periodic function, so they are all equally good in that sense. The trouble is to get at a sequence with period 4 without basing it on another one already known ...


You can make sense of this pattern (which as yoann points out does not go on very far) as saying that the density of primes is a constant $\phi^{-3}\approx0.236$, since the gap length is $F_{n+1}-F_n=F_{n-1}$ and the conjectured prime count in this gap is $F_{n-4}\approx F_{n-1}\phi^{-3}$. Unfortunately, this goes against the prime number theorem or various ...


It's known as the look-and-say sequence.


This is just the sequence of positive integers expressed in base two: $a_n$ is the base-two representation of the positive integer $n$. There's not really much more to be said.


Another approach but it's just mere an intuitive one.


Let $p(n)$ be the $n$th term in the sequence. Clearly, this sequence follows the formula: $$\begin{align} p(x) &= \frac{600631 x^{19}}{121645100408832000}-\frac{791723 x^{18}}{800296713216000}+\frac{196988587 x^{17}}{2134124568576000}\\ &-\frac{41785811 x^{16}}{7846046208000}+\frac{8219611 x^{15}}{38626689024}-\frac{49026370303 x^{14}}{...


For $n \neq -3$: $$\frac{-\frac{1}{3} (n) + (n+1) - (n+2)}{n+3} = -\frac{1}{3}$$


One possibility is to use Maple's gfun package to guess a generating function. See

Only top voted, non community-wiki answers of a minimum length are eligible