The Koch snowflake can be constructed by starting with an equilateral triangle, then recursively altering each line segment as follows:
Below is a figure of Koch snowflake of order 1, 2, 3 and 4.
Given the order , of the Koch Snowflake, you need to find the number of peak vertices and edges of the koch snowflake.
First line will contain (), the number of test cases. Each of the lines will contain one integer ().
For each case, print the number of vertices and edges for Koch Snowflake of order modulo .
2 1 2
Case 1: 3 3 Case 2: 6 12