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.

A078628 Number of ways of arranging the numbers 1..n in a circle so that there is no consecutive triple i, i+1, i+2 or i, i-1, i-2 (mod n).

Table of values

n a(n)
1 1
2 1
3 0
4 4
5 12
6 76
7 494
8 3662
9 30574
10 284398
11 2918924
12 32791604
13 400400062
14 5281683678
15 74866857910
16 1135063409918
17 18330526475060
18 314169905117860
19 5695984717957246
20 108921059813769710
21 2190998123920252622
22 46250325111346491694

List of values

[1, 1, 0, 4, 12, 76, 494, 3662, 30574, 284398, 2918924, 32791604, 400400062, 5281683678, 74866857910, 1135063409918, 18330526475060, 314169905117860, 5695984717957246, 108921059813769710, 2190998123920252622, 46250325111346491694]