Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #12 Nov 03 2021 10:48:45
%S 1,1,1,1,1,2,1,2,1,2,1,4,1,2,2,3,1,4,1,4,2,2,1,6,1,2,2,4,1,5,1,5,2,2,
%T 2,8,1,2,2,6,1,5,1,4,4,2,1,10,1,4,2,4,1,6,2,6,2,2,1,11,1,2,4,6,2,5,1,
%U 4,2,5,1,15,1,2,4,4,2,5,1,10,3,2,1,11,2
%N Number of factorizations of n with an alternating permutation.
%C First differs from A335434 at a(216) = 27, A335434(216) = 28. Also differs from A335434 at a(270) = 19, A335434(270) = 20.
%C A factorization of n is a weakly increasing sequence of positive integers > 1 with product n.
%C All of the counted factorizations are separable (A335434).
%C A sequence is alternating if it is alternately strictly increasing and strictly decreasing, starting with either. For example, the partition (3,2,2,2,1) has no alternating permutations, even though it does have the anti-run permutations (2,3,2,1,2) and (2,1,2,3,2). Alternating permutations of multisets are a generalization of alternating or up-down permutations of {1..n}.
%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Alternating_permutation">Alternating permutation</a>
%F a(2^n) = A345170(n).
%e The a(270) = 19 factorizations:
%e (2*3*3*15) (2*3*45) (2*135) (270)
%e (2*3*5*9) (2*5*27) (3*90)
%e (3*3*5*6) (2*9*15) (5*54)
%e (3*3*30) (6*45)
%e (3*5*18) (9*30)
%e (3*6*15) (10*27)
%e (3*9*10) (15*18)
%e (5*6*9)
%t facs[n_]:=If[n<=1,{{}},Join@@Table[Map[Prepend[#,d]&,Select[facs[n/d],Min@@#>=d&]],{d,Rest[Divisors[n]]}]];
%t wigQ[y_]:=Or[Length[y]==0,Length[Split[y]]==Length[y]&&Length[Split[Sign[Differences[y]]]]==Length[y]-1];
%t Table[Length[Select[facs[n],Select[Permutations[#],wigQ]!={}&]],{n,100}]
%Y Partitions not of this type are counted by A345165, ranked by A345171.
%Y Partitions of this type are counted by A345170, ranked by A345172.
%Y Twins and partitions of this type are counted by A344740, ranked by A344742.
%Y The case with twins is A347050.
%Y The complement is counted by A348380, without twins A347706.
%Y The ordered version is A348610.
%Y A001055 counts factorizations, strict A045778, ordered A074206.
%Y A001250 counts alternating permutations.
%Y A025047 counts alternating or wiggly compositions, ranked by A345167.
%Y A339846 counts even-length factorizations.
%Y A339890 counts odd-length factorizations.
%Y Cf. A038548, A056986, A325534, A335452, A347437, A347438, A347439, A347442, A347456, A347463, A348381, A348383, A348609.
%K nonn
%O 1,6
%A _Gus Wiseman_, Oct 28 2021