OFFSET
1,1
COMMENTS
All the digit sums and the digit products are multiples of 9.
EXAMPLE
5769 + (5+7+6+9) = 5796 and 5769 + (5*7*6*9) = 7659. Thus 5769 is a member of this sequence.
PROG
(PARI)
for(n=1, 10^7, d=digits(n); p=prod(i=1, #d, d[i]); if(p&&vecsort(d)==vecsort(digits(n+p))&&vecsort(d)==vecsort(digits(n+sumdigits(n))), print1(n, ", ")))
(Python)
from operator import mul
from functools import reduce
A246421_list = []
for n in range(1, 10**6):
....s = str(n)
....if not s.count('0'):
........s2 = sorted(s)
........if s2 == sorted(str(n+sum(int(d) for d in s))) and s2 == sorted(str(n+reduce(mul, (int(d) for d in s)))):
............A246421_list.append(n) # Chai Wah Wu, Sep 07 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Derek Orr, Aug 25 2014
STATUS
approved