TITLE: Mersenne, Fibonacci... are there other cases in which the existence of a given prime implies the existence of another prime?
QUESTION [7 upvotes]: Thinking about why it seems impossible to find a case in which the existence of a given prime implies the existence of another bigger prime, I tried to make a list of cases in which knowing that a number is prime then automatically we know that other one is prime. So far I just can recall two well known non-trivial situations:


Mersenne numbers, if $p=2^n-1$ is prime then $n$ is prime as well. The opposite is not true.

Fibonacci numbers, if $p=F_n$ is prime then $n$ is prime as well. The opposite is not true.



In both cases $n$ is smaller than $p$.
I would like to ask the following questions:


Did I forget more cases?

It seems that the existence of the bigger prime $p$ implies the existence of the smaller prime $n$ but I can not recall any cases in which a single (only one required) smaller prime $n$ implies that a bigger prime $p$ automatically exists. Are there any papers regarding that impossibility? Are there such cases?
Thank you!



Update 16/02/2016: as kindly explained in the comments by @DanielFischer and answer by @TitoPiezasIII, there are generalizations of both the Mersenne and Fibonacci numbers that are also part of the list.

REPLY [3 votes]: There is a prime-generating formula, but not a practical one.
Ghandhi's formula for the next prime: Let $Q$ be the product of the primes less than the odd prime $p$.(If $p=3$ then $Q=2.$)$$\text {Let }\quad S=-\frac {1}{2}+\sum_{d|Q}\frac {\mu (d)}{2^d-1}$$ where $\mu$ is the Mobius function.$$\text {Then }\quad 1<2^pS<2.$$ Since $2^{p-1}<1$ and $2<2^{p+1}$ this uniquely defines the natural number $p$.
To prove it write each term $\mu (d)/(2^d-1)=\mu (d)\sum_{n=1}^{\infty}2^{-n d}.$ Collect powers of $2$ in the sum over $d|Q.$ Using the property of $\mu$ that $\sum_{e|n}\mu(e)=0$ for $n>1$ we obtain $$S=\sum_{n\in T}2^{-n}$$ where $T=\{m:m>1\land \gcd (m,Q)=1\}.$  From the def'n of $Q$ we have $\min T=p$, and all members of $T$ are odd, so $$2^{-p}<S\leq 2^{-p}(1+1/2^2+1/2^4+...)=2^{-p}(4/3)<2^{1-p}.$$
This is about as inefficient a way as possible for generating primes.E.g. to to find the least prime greater than $1,000,000$ with this formula, you need to know all the primes less than $1,000,000$, and sum all the terms in the formula. Since there are about $72,000$ primes below $1,000,000$ this means adding about $2^{72,000}$ terms to get $S$.