Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #10 Oct 17 2014 23:54:14
%S 1512,4346,5112,5769,11215,11512,12115,12313,12511,13213,14346,14512,
%T 15112,15211,15412,21115,21313,21511,23113,25111,27369,31213,32113,
%U 34135,34535,41346,41512,43135,43535,45112,51112,51211,51412,52111,52569,53435,53534,53958,54112,54533,56925
%N Numbers n such that n + (sum of digits of n) and n + (product of digits of n) contain the same distinct digits of n.
%C Intersection of A247887 and A247888.
%o (PARI) for(n=0,10^6,d=digits(n);p=prod(i=1,#d,d[i]);vp=vecsort(digits(p+n), ,8);vs=vecsort(digits(sumdigits(n)+n), ,8);if(vs==vp&&vp==vecsort(d, ,8)&&vs==vecsort(d, ,8)&&p,print1(n,", ")))
%Y Cf. A247887, A247888, A007954, A007953, A052382.
%K nonn,base
%O 1,1
%A _Derek Orr_, Oct 12 2014