You are viewing a single comment's thread. Return to all comments →
It's a simple math problem:
First, recognize the palindrome has this format: 1 * 1 = 1 11*11 = 121 111*111 = 12321
Second, create a formula with a given value of N ((10**N) - 1) // 9
Now you can square the formula by 2
Seems like cookies are disabled on this browser, please enable them to open this website
Triangle Quest 2
You are viewing a single comment's thread. Return to all comments →
It's a simple math problem:
First, recognize the palindrome has this format: 1 * 1 = 1 11*11 = 121 111*111 = 12321
Second, create a formula with a given value of N ((10**N) - 1) // 9
Now you can square the formula by 2