Click Here to go back to the homepage.

Planina Solution:


import java.util.*;

public class Kattis {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();
        System.out.println(((int) ((Math.sqrt(Math.pow(4, i)) +1)*(Math.sqrt(Math.pow(4, i)) +1))));
    }
}