A363370 Number of ways to distribute n guards on the corners and walls of a square castle so that each wall has an equal number of guards modulo rotations and reflections.
1, 0, 1, 1, 3, 2, 5, 4, 9, 8, 13, 13, 22, 20, 30, 31, 44, 44, 60, 61, 82, 84, 106, 111, 141, 144, 177, 186, 225, 234, 279, 291, 345, 360, 417, 438, 508, 528, 604, 634, 720, 752, 848, 886, 996, 1040, 1156, 1210, 1345, 1400, 1545, 1615, 1775, 1850, 2025, 2110
Offset: 0
Keywords
Examples
For n = 5 there are two distinct distributions: 2-0-0 1-1-0 | | | | 0 1 0 1 | | | | 0-1-1 1-0-1
Links
- Martins Opmanis, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (1, 0, 1, 1, -2, 1, -3, 1, 0, -1, 3, -1, 2, -1, -1, 0, -1, 1).
Programs
-
PARI
Vec((1/((1 - x^6)*(1 - x^4)) + 1/((1 - x^3)*(1 - x^2))^2)/(2*(1 - x^4)) + O(x^61)) \\ Andrew Howroyd, May 29 2023
Formula
G.f.: (1/((1 - x^6)*(1 - x^4)) + 1/((1 - x^3)*(1 - x^2))^2)/(2*(1 - x^4)). - Andrew Howroyd, May 29 2023
Extensions
Terms a(22) and beyond from Andrew Howroyd, May 29 2023
Comments