OFFSET
1,2
COMMENTS
Concatenation of elements of set of all digits of all divisors of n in decreasing order in base 10.
There are precisely 512 distinct terms of this sequence - see A256825 (possible values of a(n) in increasing order).
Minimal term is 1, maximal term is 9876543210.
LINKS
Jaroslav Krizek, Table of n, a(n) for n = 1..100
EXAMPLE
For n = 12; list of divisors of 12 in base 10: 1, 2, 3, 4, 6, 12 contains five distinct digits (1, 2, 3, 4, 6) whose reverse concatenation is 64321.
MATHEMATICA
Table[FromDigits[Reverse[Union[Flatten[IntegerDigits[Divisors[n]]]]]], {n, 100}] (* Ivan N. Ianakiev, Apr 14 2015 *)
PROG
(Magma) [Seqint(Setseq(Set(Sort(&cat[Intseq(d): d in Divisors(n)])))): n in [1..100]]
(PARI) a(n) = {my(v = []); fordiv(n, d, v = vecsort(concat(v, digits(d)), , 8)); subst(Polrev(v), x, 10); } \\ Michel Marcus, Apr 11 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jaroslav Krizek, Apr 10 2015
STATUS
approved