OFFSET
1,2
COMMENTS
2n/3 < a(n) <= 8n/3 (P. Hegarty).
Conjecture: lim_{n->infinity} a(n)/n = 1 (P. Hegarty).
LINKS
Carl R. White, Table of n, a(n) for n = 1..9660
Peter Hegarty, Permutations avoiding arithmetic patterns, The Electronic Journal of Combinatorics, 11 (2004), #R39.
EXAMPLE
a(3)=4 because A094870(4)=3.
MAPLE
A:=proc(n) option remember; local t, S, i; S:={$1..300} minus {seq(A(i), i=1..n-1)}; t:=min(S[]); i:=1; while i<floor((n+1)/2) do if t-A(n-i)=A(n-i)-A(n-2*i) then S:=S minus {t}; t:=min(S[]); i:=1 else i:=i+1 fi od; t end: A(1):=1: L:=[seq(A(n), n=1..200)]: a:=n-> if member(n, L, 'p') then p else 0 fi: seq(a(n), n=1..194);
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Alec Mihailovs (alec(AT)mihailovs.com), Jul 05 2004
STATUS
approved