MapleStory Finger Point

๐Ÿƒ‍โ™‚๏ธBaekjoon/Python

#2903 - python

HYEJU01 2024. 5. 1. 18:04

๐Ÿ’ก ๊ทœ์น™์„ ์ฐพ์•„๋‚ด๋ฉด ์‰ฝ๊ฒŒ ํ’€ ์ˆ˜ ์žˆ๋‹ค!!

 

0 -> ๋ณ€ ์  2๊ฐœ  (2^0) +1 -> 2x2 = 4

1 -> ๋ณ€ ์  3๊ฐœ (2^1) +1  -> 3x3 = 9

2 -> ๋ณ€ ์  5๊ฐœ (2^2) +1  -> 5x5 = 25

3 -> ๋ณ€ ์  9๊ฐœ (2^3) +1  -> 9x9 = 81

 

=>  (2^n + 1)^2

 

print((2**int(input())+1)**2)