请详细查看如下几个数字的规律,并使用 shell 脚本输出后面的十个数字
10 31 53 77 105 141 ......
[[email protected] ~]# cat 1.sh #!/bin/bash a=20 b=2 c=10
echo $c for i in `seq 0 20` do let d=${a}+${b}**${i} let c=${c}+${d} echo $c done
[[email protected] ~]# sh 1.sh 10
31 53 77 105 141 193 277 425 701 1233 2277 4345 8461 16673 33077 65865 131421 262513 524677 1048985 2097581