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.

A132178 Triangle read by rows: T(n,m) is the number of cyclic permutations of [n] in which m of successive numbers add to a prime. 0<=m<=n, read by rows n>=0.

Original entry on oeis.org

0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 2, 0, 1, 0, 2, 4, 4, 2, 0, 1, 6, 19, 16, 15, 2, 1, 6, 36, 84, 108, 90, 24, 12, 0, 44, 230, 542, 722, 602, 266, 98, 14, 2, 208, 1284, 3478, 5272, 5202, 3004, 1378, 264, 70, 0, 912, 6856, 21784, 39496, 46816, 35680, 20824, 6616, 2224, 184, 48
Offset: 0

Views

Author

R. J. Mathar, Nov 04 2007

Keywords

Comments

The last entry of the (2n)th row is A051252(n). Row sums are apparently in A001710(n-1).

Examples

			The triangle starts
n|
0| 0
1| 0 1
2| 0 0 1
3| 0 0 1 0
4| 0 0 2 0 1
5| 0 2 4 4 2 0
6| 1 6 19 16 15 2 1
7| 6 36 84 108 90 24 12 0
8| 44 230 542 722 602 266 98 14 2
9| 208 1284 3478 5272 5202 3004 1378 264 70 0
10| 912 6856 21784 39496 46816 35680 20824 6616 2224 184 48
11| 8016 58232 188160 358080 449424 380592 237888 95280 32880 4776 1072 0
12| 61952 465472 1597312 3298432 4563264 4406592 3152064 1578816 641088 151936 38336 2624 512