cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A258338 Ternary ménage problem: number of seating arrangements for n opposite-sex couples around a circular table such that no spouses and no triples of the same sex seat next to each other. Seats are labeled.

Table of values

n a(n)
1 0
2 8
3 84
4 3456
5 219120
6 19281600
7 2324085120
8 370554347520
9 74897768655360
10 18761274367718400
11 5708008284647961600
12 2072453585852572876800
13 885341762559654194995200
14 439630143301970662603161600
15 251099117378080818090596352000
16 163464570058143774978660630528000

List of values

[0, 8, 84, 3456, 219120, 19281600, 2324085120, 370554347520, 74897768655360, 18761274367718400, 5708008284647961600, 2072453585852572876800, 885341762559654194995200, 439630143301970662603161600, 251099117378080818090596352000, 163464570058143774978660630528000]