OFFSET
1,15
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
EXAMPLE
The a(90) = 9 permutations of {2,3,3,5} not starting with 2:
3 2 3 5
3 2 5 3
3 3 2 5
3 3 5 2
3 5 2 3
3 5 3 2
5 2 3 3
5 3 2 3
5 3 3 2
MATHEMATICA
primeMS[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Table[Length[Select[Permutations[primeMS[n]], #=={}||First[#]>1&]], {n, 100}]
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, May 02 2019
EXTENSIONS
Data section extended up to 105 terms by Antti Karttunen, Dec 06 2021
STATUS
approved