Problem 996 · Hard

Number of Squareful Arrays

Count distinct arrangements where every adjacent pair sums to a perfect square, skipping repeated values at each position.

Open the interactive visualisation