7669: [CSES Problem Set] Counting Grids
[Creator : ]
Description
Your task is to count the number of different $n \times n$ grids whose each square is black or white.
Two grids are considered to be different if it is not possible to rotate one of them so that they look the same.
Two grids are considered to be different if it is not possible to rotate one of them so that they look the same.
Input
The only input line has an integer $n$: the size of the grid.
Output
Print one integer: the number of grids modulo $10^9+7$.
Constraints
$1≤n≤10^9$
Sample 1 Input
4
Sample 1 Output
16456