Generalising the configurations of an \(N\times N\times N\) Rubik’s Cube

I investigate a \(3\times3\times3\) and a \(4\times4\times4\) Rubik's Cube to find the total number of configurations and thereby to understand patterns in these respective calculations. Then, using these patterns, I create a method to deduce an \(N\times N\times N\) Rubik's Cube’s total number of configurations.