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.

Original entry on oeis.org

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

Views

Author

Derek Orr, Oct 12 2014

Keywords

Comments

Intersection of A247887 and A247888.

Crossrefs

Programs

  • 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,", ")))