Padovan cuboid spiral (source code)

= Padovan cuboid spiral
{wiki=Padovan_cuboid_spiral}

The Padovan cuboid spiral is a geometric figure that extends the concept of the Padovan sequence into three dimensions. The Padovan sequence is defined by the recurrence relation \\( P(n) = P(n-2) + P(n-3) \\) with initial values \\( P(0) = 1 \\), \\( P(1) = 1 \\), and \\( P(2) = 1 \\). Subsequent values can be derived from these.