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.

A118537 Number of functions f: {1, 2, ..., n} --> {1, 2, ..., n} such that f(1) != f(2), f(2) != f(3), ..., f(n-1) != f(n), f(n) != f(1).

Table of values

n a(n)
2 2
3 6
4 84
5 1020
6 15630
7 279930
8 5764808
9 134217720
10 3486784410
11 99999999990
12 3138428376732
13 106993205379060
14 3937376385699302
15 155568095557812210
16 6568408355712890640
17 295147905179352825840
18 14063084452067724991026

List of values

[2, 6, 84, 1020, 15630, 279930, 5764808, 134217720, 3486784410, 99999999990, 3138428376732, 106993205379060, 3937376385699302, 155568095557812210, 6568408355712890640, 295147905179352825840, 14063084452067724991026]