OFFSET
1,2
COMMENTS
The number-of-divisors function d = A000005 is multiplicative with d(p^e) = e+1. Therefore, a prime signature (e1, e2, ..., eN) which yields a given number of divisors corresponds to a factorization (e1+1)*...*(eN+1) of that number. Following the usual convention, we only consider prime signatures with decreasing exponents (e1 >= e2 >= ... >= eN). Furthermore, we list them in reverse lexicographic order, i.e., largest e1 first, etc.
The sequence starts with row 1 which has length 0 (the only number having only 1 divisor is 1 which has the empty product as prime factorization), so the first term a(1) = 1 is the first element of row 2. Here and thereafter, the first element of row n is easily recognized as the first occurrence of n-1, which is the only element of the row (and therefore followed by n) iff n is prime.
EXAMPLE
Table begins:
row n | prime signatures
1 | ()
2 | (1)
3 | (2)
4 | (3), (1,1)
5 | (4)
6 | (5), (2,1)
7 | (6)
8 | (7), (3,1), (1,1,1)
9 | (8), (2,2)
10 | (9), (4,1)
11 | (10)
12 | (11), (5,1), (3,2), (2,1,1)
PROG
(PARI) A353248_row(n, M=n)={if(n>1, my(f=factor(n)~, m=f[1, #f], L=List()); fordiv(n, d, n < m*d && break; n > M*d || foreach(self()(d, n/d), S, listput(L, concat(n/d-1, S)))); Vec(L), [[]])}
CROSSREFS
Cf. A000005 (d = tau = number-of-divisors function).
Cf. A025487 (products of primorial numbers, representatives of prime signatures), A046523 (representative of prime signature of n), A118914, A212171 and A124010 (prime signature of n), A124832 (prime signatures listed in order of representatives A025487), A080577 (partitions in grad.rev.lex order), A036036 (partitions in rev.lex order).
KEYWORD
nonn,tabf
AUTHOR
M. F. Hasler, Apr 08 2022
STATUS
approved