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.

A367704 Number of permutations of [n] where each pair of adjacent elements differs by a prime.

Table of values

n a(n)
0 1
1 1
2 0
3 0
4 2
5 10
6 32
7 96
8 448
9 1968
10 7320
11 21516
12 118938
13 662742
14 4556360
15 26950038
16 155388246
17 756995286
18 5730299976
19 38809702892
20 337875402936
21 2593543573702
22 20560179519176
23 138677553274430
24 1337517942958934
25 11083936316867572
26 94288296012340842

List of values

[1, 1, 0, 0, 2, 10, 32, 96, 448, 1968, 7320, 21516, 118938, 662742, 4556360, 26950038, 155388246, 756995286, 5730299976, 38809702892, 337875402936, 2593543573702, 20560179519176, 138677553274430, 1337517942958934, 11083936316867572, 94288296012340842]