- #1

archaic

- 688

- 214

Hello! A while I tried to find a formula that allows finding the number of palindromes and I actually came up with something :

So let's say

if

else if

This probably exists somewhere on the internet, but who knows ..

See ya!

So let's say

**P**is the number of palindromes made of**n**digits,if

**n**is even then [tex]P = 9 * 10^\frac{n-2}{2}[/tex]else if

**n**is odd and**=/= 1**then [tex]P = 9 * 10^\frac{n-1}{2}[/tex]This probably exists somewhere on the internet, but who knows ..

See ya!

Last edited: