Even and odd compositions with restricted parts
arXiv:2405.03477
Abstract
A result of Legendre asserts that the difference between the numbers of (length) even and odd partitions of into distinct parts is , , or ; this also follows from Euler's pentagonal number theorem. We establish an analogous result for compositions and obtain some generalizations that are related to various entries in the On-Line Encyclopedia of Integer Sequences.
8 pages