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 P is the number of palindromes made of n digits,
if n is even then P = 9 * 10^\frac{n-2}{2}
else if n is odd and =/= 1 then P = 9 * 10^\frac{n-1}{2}
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 P = 9 * 10^\frac{n-2}{2}
else if n is odd and =/= 1 then P = 9 * 10^\frac{n-1}{2}
This probably exists somewhere on the internet, but who knows ..
See ya!
Last edited: