递归算法 某人吃桃子 卖一半吃一个 <?php function peach($n){ if($n == 1) return 1; return 2*peach($n-1)+1; } echo peach(3); ?>