OFFSET
1,2
COMMENTS
Equivalently, numbers k such that A323394(k) = k.
EXAMPLE
For k = 14:
- the divisors of 14 are: 1, 2, 7, 14,
- the sum of the units are: 1 + 2 + 7 + 4 = 14 == 4 (mod 10),
- the sum of the tens are: 1,
- hence A323394(14) = 14 and 14 belongs to the sequence.
PROG
(PARI) isok(n, base=10) = my (v=[]); fordiv (n, d, my (w=Vecrev(digits(d, base))); v=vector(max(#v, #w), k, (if (k>#v, w[k], k>#w, v[k], (v[k]+w[k])%base)))); fromdigits(Vecrev(v), base)==n
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 13 2019
STATUS
approved