OFFSET
1,1
COMMENTS
Equivalently, numbers k such that A323394(k) = 0.
EXAMPLE
For k = 87:
- the divisors of 87 are: 1, 3, 29, 87,
- the sum of units is: 1 + 3 + 9 + 7 = 20 == 0 (mod 10),
- the sum of tens is: 2 + 8 = 10 == 0 (mod 10),
- hence A323394(87) = 0 and 87 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)))); vecmax(v)==0
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 13 2019
STATUS
approved