OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..912 (* All terms up to 10^7. *)
MATHEMATICA
id[n_]:=IntegerDigits[n]; palQ[n_]:=Reverse[x=id[n]]==x; t={}; Do[If[(y=Times@@id[n])>0 && palQ[Plus@@id[n]] && palQ[y], AppendTo[t, n]], {n, 222}]; t (* Jayanta Basu, May 15 2013 *)
Select[Range[300], FreeQ[IntegerDigits[#], 0]&&AllTrue[{Total[IntegerDigits[#]], Times@@ IntegerDigits[ #]}, PalindromeQ]&] (* Harvey P. Dale, Mar 25 2024 *)
PROG
(PARI) ispal(n)=n=digits(n); for(i=1, #n\2, if(n[i]!=n[#n+1-i], return(0))); 1
is(n)=my(d=vecsort(digits(n))); d[1]&&ispal(sum(i=1, #d, d[i]))&&ispal(prod(i=1, #d, d[i])) \\ Charles R Greathouse IV, May 15 2013
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Apr 23 2003
EXTENSIONS
Corrected by Harvey P. Dale, Mar 25 2024
STATUS
approved