Chowla’s (inverse) problem (CP) is to mean a proof of linear independence of cotangent-like values from non-vanishing of L(1,χ)=∑n=1∞χ(n)n. On the other hand, we refer to determinant expressions for the (relative) class number of a cyclotomic field as the Maillet–Demyanenko determinants (MD). Our aim is to develop the theory of discrete Fourier transforms (DFT) with parity and to unify Chowla’s problem and Maillet–Demyanenko determinants (CPMD) as different-looking expressions of the relative class number via the Dedekind determinant and the base change formula.