|
|
A326307
|
|
a(n) is the index of n in the ordered list of the numbers with the same digits as n.
|
|
2
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,22
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
a(321) = 6 as 321 is the sixth number made of the digits [1, 2, 3]. The five smaller numbers having these digits are 123, 132, 213, 231, 312.
|
|
PROG
|
(PARI) see Corneth link
(PARI) { o = vector(100); for (n=0, 87, print1 (o[1+fromdigits(vecsort(digits(n, base=10), , 4), base)]++ ", ")) } \\ Rémy Sigrist, Oct 17 2019
(PARI) A326307(n, D=Vecsmall(digits(n)), c=1)={forperm(vecsort(D), d, d==D&&break; d[1]&&c++); c} \\ M. F. Hasler, May 19 2021
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|