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.

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.

This page as a plain text file.
%I A248718 #10 Oct 17 2014 23:54:14
%S A248718 1512,4346,5112,5769,11215,11512,12115,12313,12511,13213,14346,14512,
%T A248718 15112,15211,15412,21115,21313,21511,23113,25111,27369,31213,32113,
%U A248718 34135,34535,41346,41512,43135,43535,45112,51112,51211,51412,52111,52569,53435,53534,53958,54112,54533,56925
%N 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.
%C A248718 Intersection of A247887 and A247888.
%o A248718 (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 A248718 Cf. A247887, A247888, A007954, A007953, A052382.
%K A248718 nonn,base
%O A248718 1,1
%A A248718 _Derek Orr_, Oct 12 2014