login
A248718
Numbers n such that n + (sum of digits of n) and n + (product of digits of n) contain the same distinct digits of n.
0
1512, 4346, 5112, 5769, 11215, 11512, 12115, 12313, 12511, 13213, 14346, 14512, 15112, 15211, 15412, 21115, 21313, 21511, 23113, 25111, 27369, 31213, 32113, 34135, 34535, 41346, 41512, 43135, 43535, 45112, 51112, 51211, 51412, 52111, 52569, 53435, 53534, 53958, 54112, 54533, 56925
OFFSET
1,1
COMMENTS
Intersection of A247887 and A247888.
PROG
(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, ", ")))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Derek Orr, Oct 12 2014
STATUS
approved