OFFSET
0,7
COMMENTS
Equivalently, number of permutations of {1,2,...,n} where elements that differ by 1 in value are neither in positions i and i+1 (adjacent), nor i and i+2.
EXAMPLE
Valid permutations of {1,...,6} are 415263 and 362514.
CROSSREFS
KEYWORD
nonn
AUTHOR
Richard Forster (gbrl01(AT)yahoo.co.uk), Apr 11 2007, Apr 26 2007
EXTENSIONS
Jul 01 2010: Zak Seidov corrected a(10) and a(11). R. H. Hardin then computed a(12) through a(18).
Corrected first term to 1 (was 0).
a(0), a(19)-a(20) from Alois P. Heinz, Oct 27 2014
STATUS
approved