OFFSET
1,1
LINKS
David Consiglio, Jr., Table of n, a(n) for n = 1..212
David Consiglio, Jr., Python Program
EXAMPLE
928 is here since the divisors of 928 are [1, 2, 4, 8, 16, 29, 32, 58, 116, *232*, *464*, 928].
MAPLE
ispali:= proc(n) local L;
L:= convert(n, base, 10); evalb(L = ListTools:-Reverse(L))
end proc:
filter:= proc(n) local D;
if ispali(n) then return false fi;
D:= sort(convert(select(`>=`, numtheory:-divisors(n) minus {n}, 10), list));
nops(D) >= 2 and select(ispali, D) = [D[-2], D[-1]];
end proc:
select(filter, [$1..10^5]); # Robert Israel, Oct 12 2015
MATHEMATICA
tldp[n_]:=Module[{d=Select[Most[Divisors[n]], #>9&]}, Length[d]>1&&d[[-2]]> 9 && !PalindromeQ[n]&&AllTrue[Take[d, -2], PalindromeQ]&&NoneTrue[Drop[d, -2], PalindromeQ]]; Select[Range[57000], tldp] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 11 2021 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Jason Earls, Sep 13 2002
EXTENSIONS
Corrected and extended by David Consiglio, Jr., Oct 12 2015
STATUS
approved