问题1262--Peach

1262: Peach

[命题人 : ]
时间限制 : 1.000 sec  内存限制 : 64 MB

题目描述

Almost all young man know Monkey Sun whose name is Sun Wukong. One day he steals many peaches from the kingdom of heaven. First day, he ate a half of the peaches, then ate another one of the left peaches.The next day, he ate a half of the left peaches, then another one.Until the n-th day ,before he ate he found only one peach. Please help Sun Wukong to calculate how many peaches he took from the kingdom of heaven.

输入

The input file contains one or more test cases, each line is the days N(1 < n < 30).

输出

For each test case, output a line indicating the number of peaches Monkey Sun had the first day.

样例输入 Copy

2
4

样例输出 Copy

4
22

来源/分类

yehr