Bash Shape Area
shape_area() {
    local _n=$1
    if (( _n > 1 )); then
        echo $(( $(shape_area $(( _n - 1 ))) + 4 * (_n - 1) ))
    else
        echo 1
    fi
}

This returns the area of the growing n-interesting polygon using the direct formula instead of building the shape.