Re: Rearrangements of 1,2,...,N
- From: hagman <google@xxxxxxxxxxxxx>
- Date: Sat, 14 Feb 2009 10:25:19 -0800 (PST)
On 14 Feb., 15:40, "jhni...@xxxxxxxxx" <jhni...@xxxxxxxxx> wrote:
On 14 feb, 10:34, Tim Little <t...@xxxxxxxxxxxxxxxxxx> wrote:
On 2009-02-14, Roman B. Binder <rbin...@xxxxxxxxxxxxxxxx> wrote:
On Feb 14, 2009 Jos[] H. Nieto wrote:[...]
Is it always possible to rearrange the positive integers from 1 to N
in such a way that the sums of consecutive terms are prime numbers?
Your question applies for string or ring of such numbers ?
Odd and even positions must alternate, so for a ring structure any odd
N fails.
For a sequence, it seems very likely that a suitable arrangement is
always possible but I do not have a proof.
- Tim
I am interested in sequences. So far I know that, if 2n-1 and 2n+1 are
twin primes, then the integers from 1 to 2n may be arranged as:
2n, 1, 2n-2, 3, 2n-4, 5,..., 4, 2n-3, 2, 2n-1
with alternate prime sums 2n+1 and 2n-1.
jhn
As long as one finds enough prime twind, the following
"proof by induction works":
Pseudo theorem:
For all n in N, n>1, there is a permutation a_1, a_2, ..., a_n
of 1,2,...,n such that such that all consecutive sums a_i + a_{i+1}
are prime and a_n = n.
Pseudo proof:
Small n are easy: n=2: 1,2. n=3: 1,2,3.
Assume n>3 and n+k-1, n+k+1 are twin primes for some k<n
By induction hypothesis, find a permutation b_1, ..., b_k of
1,...,k with b_k=k and b_i+b_{i+1} prime for all i.
Then
b_1, ..., b_k=k, n-1, k+2, n-3, k+4, ..., k+5, n-4, k+3, n-2,k+1, n
is as requested (note that n=k mod 2 so the pattern matches correctly)
However, can we always find twin primes n <= p < p+2 <= 2n+1?
Since we don't even know if there are infinitely twin primes at all,
this is not very encouraging.
(How far do we get numerically with this? It is, what is the
smallest n such that [n,2n+1] contains no twin primes?)
..-.-.
As far from a proof as possible, but heuristically, let's assume
the consecutive sums are random numbers between 3 and 2n-1, inclusive
(actually, a random permutation would prefer sums near n+1).
Each is prime with probability ~1/ln(n), thus allare prime with
probability ~1/(ln(n))^n so that it is very likely that at least
one of the n!~(n/e)^n possible arrangements succeeWrite down the
sequence ds...
.
- Follow-Ups:
- Re: Rearrangements of 1,2,...,N
- From: hagman
- Re: Rearrangements of 1,2,...,N
- References:
- Rearrangements of 1,2,...,N
- From: jhnieto@xxxxxxxxx
- Re: Rearrangements of 1,2,...,N
- From: Roman B. Binder
- Re: Rearrangements of 1,2,...,N
- From: Tim Little
- Re: Rearrangements of 1,2,...,N
- From: jhnieto@xxxxxxxxx
- Rearrangements of 1,2,...,N
- Prev by Date: Re: Minimizing a function via iterations
- Next by Date: Re: Minimizing a function via iterations
- Previous by thread: Re: Rearrangements of 1,2,...,N
- Next by thread: Re: Rearrangements of 1,2,...,N
- Index(es):
Relevant Pages
|