This took all of 2 minutes to find the answer to. Mostly because the answer is the country on our planet with the most Muslims. It is a republic with a presidential system and 3 branches of government, like the US.

It has 202M muslims, more than Saudi Arabia, Iran and Iraq combined. It is Indonesia.