A091582 Number of partitions of the n-th decimal palindrome.
1, 1, 2, 3, 5, 7, 11, 15, 22, 30, 56, 1002, 10143, 75175, 451276, 2323520, 10619863, 44108109, 169229875, 214481126, 679903203, 2056148051, 5964539504, 16670689208, 45060624582, 118159068427, 301384802048, 749474411781, 1820701100652, 4714566886083, 10963707205259
Offset: 1
Links
- Eric Weisstein's World of Mathematics, Palindromic Number
- Eric Weisstein's World of Mathematics, Partition
Programs
-
Python
from sympy import npartitions def A091582(n): if n == 1: return 1 y = 10*(x:=10**(len(str(n>>1))-1)) return npartitions((c:=n-x)*x+int(str(c)[-2::-1]or 0) if n
Chai Wah Wu, Jun 14 2024
Extensions
a(1)=1 prepended and more terms from Georg Fischer, Dec 15 2020
Comments