Bash Create An Array Math Problem