cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A272814 Palindromes such that sum of digits equals product of digits.

This page as a plain text file.
%I A272814 #20 Aug 14 2017 03:25:40
%S A272814 1,2,3,4,5,6,7,8,9,22,12221,13131,21212,31113,1111441111,1114114111,
%T A272814 1141111411,1411111141,4111111114,11112421111,11121412111,11211411211,
%U A272814 12111411121,21111411112,111122221111,111212212111,111221122111,112112211211,112121121211
%N A272814 Palindromes such that sum of digits equals product of digits.
%C A272814 Inspired by A272436.
%C A272814 Intersection of A002113 and A034710.
%C A272814 This sequence is obviously infinite.
%H A272814 Chai Wah Wu, <a href="/A272814/b272814.txt">Table of n, a(n) for n = 1..10000</a>
%t A272814 m[w_] := Flatten@Table[i, {i, 9}, {w[[i]]}]; palQ[n_] := n == FromDigits@ Reverse@ IntegerDigits@n; all[upd_] := Union@ Flatten@ Table[ FromDigits /@ Flatten[ Permutations /@ m /@ Select[ Flatten[Permutations /@ (IntegerPartitions[d + 9, {9}, Range[d+1]] -1), 1], Times @@ (Range[9]^#) == Total[# Range[9]] &], 1], {d, upd}]; Select[all@13, palQ] (* _Giovanni Resta_, May 06 2016 *)
%o A272814 (PARI) isok(n) = { my(d = digits(n)); (vecsum(d) == prod(k=1, #d, d[k])) && (subst(Polrev(d), x, 10) == n);} \\ _Michel Marcus_, May 07 2016
%Y A272814 Cf. A002113, A034710, A272436.
%K A272814 nonn,base
%O A272814 1,2
%A A272814 _Altug Alkan_, May 06 2016
%E A272814 a(15)-a(29) from _Giovanni Resta_, May 06 2016