A214522 List of words over {1,5} with equal numbers of 1's and 5's.
15, 51, 1155, 1515, 1551, 5115, 5151, 5511, 111555, 115155, 115515, 115551, 151155, 151515, 151551, 155115, 155151, 155511, 511155, 511515, 511551, 515115, 515151, 515511, 551115, 551151, 551511, 555111
Offset: 1
Programs
-
Mathematica
Sort[FromDigits/@Flatten[Table[Permutations[PadRight[{},2n,{1,5}]],{n,3}],1]] (* Harvey P. Dale, Aug 30 2016 *)
Comments