Finally solved the issue on N mod 26 == 0