login
Number of ordered factorizations of n into decimal palindromes > 1.
3

%I #8 Nov 15 2020 17:01:42

%S 1,1,1,2,1,3,1,4,2,2,1,7,0,2,2,7,0,7,0,5,2,3,0,17,1,0,3,5,0,8,0,13,3,

%T 0,2,21,0,0,0,12,0,8,0,8,5,0,0,38,1,3,0,0,0,15,3,12,0,0,0,24,0,0,5,24,

%U 0,13,0,0,0,6,0,58,0,0,3,0,3,0,0,26,5,0,0,24,0,0,0,20,0,24

%N Number of ordered factorizations of n into decimal palindromes > 1.

%H Robert Israel, <a href="/A338565/b338565.txt">Table of n, a(n) for n = 1..10000</a>

%H <a href="/index/Pac#palindromes">Index entries for sequences related to palindromes</a>

%F a(1) = 1; a(n) = Sum_{d|n, d<n} A136522(n/d) * a(d).

%p ispali:= proc(n) local L;

%p L:= convert(n,base,10);

%p evalb(L = ListTools:-Reverse(L))

%p end proc:

%p N:= 100: # for a(1)..a(N)

%p Palis:= select(ispali, {$2..N}):

%p A:= Vector(N):

%p A[1]:= 1:

%p for n from 2 to N do

%p A[n]:= add(A[n/d], d= numtheory:-divisors(n) intersect Palis)

%p od:

%p convert(A,list); # _Robert Israel_, Nov 15 2020

%t a[n_] := If[n == 1, n, Sum[If[(d < n && PalindromeQ[n/d]), a[d], 0], {d, Divisors[n]}]]; Table[a[n], {n, 1, 90}]

%Y Cf. A002113, A136522.

%K nonn,base

%O 1,4

%A _Ilya Gutkovskiy_, Nov 02 2020