41
import java.text.DecimalFormat; import java.util.Scanner; enum color { red, orange, yellow, green, blue, violet } public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { int T = sc.nextInt(); int []a = new int [110]; a[1] = 0; a[2] = 1; for(int i =3 ;i<=101;i++) { a[i] = 4*a[i-1]-5*a[i-2]; } for(int i =0; i<T;i++) { int b = sc.nextInt(); System.out.println(a[b]); } } } }