OFFSET
0,6
COMMENTS
LINKS
Alois P. Heinz, Rows n = 0..26, flattened
EXAMPLE
MAPLE
with(numtheory):
g:= proc(n) option remember; `if`(n=1, 1,
add(g(n/q*`if`(q=2, 1, prevprime(q))), q=factorset(n)))
end:
b:= proc(n, i) option remember; `if`(n=0 or i<2, [2^n],
[seq(map(p->p*ithprime(i)^j, b(n-i*j, i-1))[], j=0..n/i)])
end:
T:= n-> map(g, sort(b(n, n)))[]:
seq(T(n), n=0..10); # Alois P. Heinz, Aug 09 2012
MATHEMATICA
g[n_] := g[n] = If[n == 1, 1, Sum[g[n/q*If[q == 2, 1, NextPrime[q, -1]]], {q, FactorInteger[n][[All, 1]]}]];
b[n_, i_] := b[n, i] = If[n == 0 || i < 2, {2^n}, Flatten[Table[Map[ #*Prime[i]^j&, b[n - i*j, i - 1]], {j, 0, n/i}]]];
T[n_] := g /@ Sort[b[n, n]];
T /@ Range[0, 10] // Flatten (* Jean-François Alcover, Feb 16 2021, after Alois P. Heinz *)
CROSSREFS
KEYWORD
AUTHOR
Naohiro Nomoto, Dec 31 2008
STATUS
approved