OFFSET
1,2
COMMENTS
Conjectured permutation of the natural numbers.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
For n = 4, 3 is not available because {a(2)=2, 3, a(3)=4} form an arithmetic progression, 1,2,4 are already used, so a(4) = 5. - Robert Israel, Nov 15 2015
MAPLE
N:= 1000: # to get all terms before the first > N
V:= Vector(N):
S:= Vector(N):
firstav:= 1;
for n from 1 to N do
forbid:= {seq(op([2*V[k]-V[2*k-n], 2*V[2*k-n]-V[k], (V[k]+V[2*k-n])/2]), k=ceil((n+1)/2)..n-1)};
for v from firstav to N do
if S[v] <> 0 and v = firstav then firstav:= v+1 fi;
if S[v] = 0 and not member(v, forbid) then
V[n]:= v;
S[v]:= 1;
break
fi
od;
if v > N then break fi;
od:
seq(V[i], i=1..n-1); # Robert Israel, Nov 15 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Max Barrentine, Oct 05 2015
EXTENSIONS
Added more terms from b-file. - N. J. A. Sloane, Nov 26 2015
STATUS
approved
