[noun] + ではあるまいか [na-adj] + ではあるまいか [na-adj] + なのではあるまいか [verb (plain)] + のではあるまいか [i-adj] + のではあるまいか
ではあるまいか puts forward the writer's own view as a question: "isn't it…?", "surely it is…". It follows a noun or a な-adjective directly; a verb or an い-adjective takes の first, and a な-adjective can take なの.
あるまい is ある with the literary ending まい, "probably is not". The question asks "would it not be…?", and the answer the writer expects is yes.ではあるまいか belongs to essays, editorials and speeches, and ではなかろうか is just as literary. In ordinary writing and in polite speech, use のではないだろうか; among friends, んじゃないかな.