OFFSET
1,2
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10002 (rows 1 to 3272, flattened)
EXAMPLE
Sequence of partitions begins: (), (1), (2), (11), (3), (21), (4), (111), (22), (31), (5), (211), (6), (41), (32), (1111), (7), (221).
MAPLE
f := n -> op(map(numtheory:-pi, sort(map(`$`@op, ifactors(n)[2]), `>`))):
map(f, [$1..100]); # Robert Israel, Feb 09 2018
MATHEMATICA
Table[If[n===1, {}, Join@@Cases[FactorInteger[n]//Reverse, {p_, k_}:>Table[PrimePi[p], {k}]]], {n, 50}]
CROSSREFS
KEYWORD
AUTHOR
Gus Wiseman, Feb 05 2018
STATUS
approved