Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.

Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).

if n = 28, the result is 530803311, but if n =29, the result is 9569297, which is smaller than the result of n=28, so the answer is incorrect.

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.