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.
%I A249517 #61 Jun 04 2025 00:31:00 %S A249517 0,1,2,3,4,5,6,7,8,9,11111111111 %N A249517 Numbers k for which the digital sum A007953(k) and the digital product A007954(k) both contain the same distinct digits as the number k. %C A249517 a(12) = (10^106-1)/9 + 122222222. - _Max Alekseyev_, Nov 15 2014 %C A249517 Other entries include (10^111-1)/9, (10^113-1)/9 + 177, (10^115-1)/9 + 122222222, (10^117-1)/9 + 11117, (10^125-1)/9 + 2224, (10^126-1)/9 + 333335, (10^135-1)/9 + 4666, (10^143-1)/9 + 446, (10^143-1)/9 + 2224, (10^144-1)/9 + 33335. All other entries with 150 or fewer digits are formed by permutations of the decimal digits of these entries (including a(12)). (10^((10^m-1)/9)-1)/9 are entries of the sequence for m >= 0. - _Chai Wah Wu_, Nov 15 2014 %e A249517 11111111111 is a term since A007953(11111111111) = 11 and A007954(11111111111) = 1. %o A249517 (Magma) [0] cat [n: n in [0..10^7] | Set(Intseq(n)) eq Set(Intseq(&*Intseq(n))) and Set(Intseq(n)) eq Set(Intseq(&+Intseq(n)))]; %o A249517 (PARI) is(n)=if(n<=9,return(1)); my(d=digits(n),s=Set(d)); s==Set(digits(sum(i=1,#d,d[i]))) && s==Set(digits(prod(i=1,#d,d[i]))) \\ _Charles R Greathouse IV_, Nov 13 2014 %o A249517 (Python) %o A249517 from itertools import product %o A249517 from operator import mul %o A249517 from functools import reduce %o A249517 A249517_list = [0] %o A249517 for g in range(1,15): %o A249517 xp, ylist = [], [] %o A249517 for i in range(9*g,-1,-1): %o A249517 x = set(str(i)) %o A249517 if not (('0' in x) or (x in xp)): %o A249517 xv = [int(d) for d in x] %o A249517 imin = int(''.join(sorted(str(i)))) %o A249517 if max(xv)*(g-len(x)) >= imin-sum(xv) and i-sum(xv) >= min(xv)*(g-len(x)): %o A249517 xp.append(x) %o A249517 for y in product(x,repeat=g): %o A249517 if set(y) == x: %o A249517 yd = [int(d) for d in y] %o A249517 if set(str(sum(yd))) == x == set(str(reduce(mul, yd, 1))): %o A249517 ylist.append(int(''.join(y))) %o A249517 A249517_list.extend(sorted(ylist)) # _Chai Wah Wu_, Nov 15 2014 %Y A249517 Intersection of A249515 and A249516. Subsequence of A249334. %Y A249517 Cf. A007954, A249334, A249515, A249516. %K A249517 nonn,base %O A249517 1,3 %A A249517 _Jaroslav Krizek_, Oct 31 2014 %E A249517 a(11) = 11111111111 confirmed by _Sean A. Irvine_, Nov 13 2014, by direct search.