Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A146558
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A146558 Number of order n permutations without collinear triples +0
1
1, 2, 0, 16, 0, 72, 0, 256, 0, 0, 0, 2304, 0 (list; graph; listen)
OFFSET

1,2

LINKS

L. Li, Collinear triples in permutations, arXiv:0802.0572

FORMULA

For prime p>=3, a(p) = 0.

EXAMPLE

For n=4, there are a(4)=16 permutations without collinear triples: [1, 2, 4, 3], [1, 3, 2, 4], [1, 3, 4, 2], [1, 4, 2, 3], [2, 1, 3, 4], [2, 3, 1, 4], [2, 4, 1, 3], [2, 4, 3, 1], [3, 1, 2, 4], [3, 1, 4, 2], [3, 2, 4, 1], [3, 4, 2, 1], [4, 1, 3, 2], [4, 2, 1, 3], [4, 2, 3, 1], [4, 3, 1, 2]

PROGRAM

(PARI) { a(n) = local(p, r, g); r=0; for(j=1, n!, p=numtoperm(n, j); g=1; forvec(v=vector(3, i, [1, n]), if(matdet([1, v[1], p[v[1]]; 1, v[2], p[v[2]]; 1, v[3], p[v[3]]])%n==0, g=0; break), 2); if(g, r++)); r }

CROSSREFS

Cf. A135538, A146557

Sequence in context: A074031 A086261 A111978 this_sequence A025600 A009006 A155585

Adjacent sequences: A146555 A146556 A146557 this_sequence A146559 A146560 A146561

KEYWORD

hard,more,nonn

AUTHOR

Max Alekseyev (maxale(AT)gmail.com), Nov 01 2008

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 13 23:45 EST 2009. Contains 170824 sequences.


AT&T Labs Research