A dynamic programming solution to the chicken wing pricing problem. It returns the optimal sequence for the cheapest price if you want to buy n wings.
https://www.thisisinsider.com/restaurants-pricing-confusing-math-2018-10
4) 4.55 [4]
5) 5.7 [5]
6) 6.8 [6]
7) 7.95 [7]
8) 9.1 [8]
9) 10.2 [9]
10) 11.35 [10]
11) 12.5 [11]
12) 13.6 [12]
13) 14.75 [13]
14) 15.9 [14]
15) 17.0 [15]
16) 18.15 [16]
17) 19.3 [17]
18) 20.4 [18]
19) 21.55 [19]
20) 22.7 [20]
21) 23.8 [21]
22) 24.95 [22]
23) 26.1 [23]
24) 27.2 [6, 18] saving: 0.05
25) 27.8 [25]
26) 28.95 [26]
27) 30.1 [27]
28) 31.2 [28]
29) 32.35 [29]
30) 33.5 [30]
31) 34.6 [6, 25]
32) 35.75 [4, 28]
33) 36.90 [4, 29]
34) 38.0 [6, 28]
35) 39.15 [35]
36) 40.30 [4, 4, 28]
37) 41.4 [6, 6, 25]
38) 42.55 [4, 6, 28]
39) 43.70 [4, 35]
40) 44.8 [40]
41) 45.95 [4, 6, 6, 25]
42) 47.10 [4, 4, 6, 28]
43) 48.2 [6, 6, 6, 25]
44) 49.35 [4, 40]
45) 50.5 [45]
46) 51.6 [6, 40]
47) 52.75 [4, 6, 6, 6, 25]
48) 53.90 [4, 4, 40]
49) 55.0 [6, 6, 6, 6, 25]
50) 55.6 [25, 25]
51) 56.75 [25, 26]
52) 57.9 [25, 27]
53) 59.0 [25, 28]
54) 60.15 [4, 25, 25]
55) 61.30 [4, 25, 26]
56) 62.4 [6, 25, 25]
57) 63.55 [4, 25, 28]
58) 64.70 [4, 4, 25, 25]
59) 65.8 [6, 25, 28]
60) 66.95 [4, 6, 25, 25] saving: 0.05
61) 68.10 [4, 4, 25, 28]
62) 69.2 [6, 6, 25, 25]
63) 70.35 [4, 6, 25, 28]
64) 71.50 [4, 4, 6, 25, 25]
65) 72.6 [6, 6, 25, 28]
66) 73.75 [4, 6, 6, 25, 25]
67) 74.90 [4, 4, 6, 25, 28]
68) 76.0 [6, 6, 6, 25, 25]
69) 77.15 [4, 6, 6, 25, 28]
70) 78.3 [70]
71) 79.4 [6, 6, 6, 25, 28]
72) 80.55 [4, 6, 6, 6, 25, 25]
73) 81.70 [4, 4, 6, 6, 25, 28]
74) 82.8 [6, 6, 6, 6, 25, 25]
75) 83.4 [25, 25, 25]
76) 84.55 [25, 25, 26]
77) 85.7 [25, 25, 27]
78) 86.8 [25, 25, 28]
79) 87.95 [4, 25, 25, 25]
80) 89.1 [80]
81) 90.2 [6, 25, 25, 25]
82) 91.35 [4, 25, 25, 28]
83) 92.50 [4, 4, 25, 25, 25]
84) 93.6 [6, 25, 25, 28]
85) 94.75 [4, 6, 25, 25, 25]
86) 95.90 [4, 4, 25, 25, 28]
87) 97.0 [6, 6, 25, 25, 25]
88) 98.15 [4, 6, 25, 25, 28]
89) 99.30 [4, 4, 6, 25, 25, 25]
90) 100.4 [6, 6, 25, 25, 28] saving: 0.05
91) 101.55 [4, 6, 6, 25, 25, 25]
92) 102.70 [4, 4, 6, 25, 25, 28]
93) 103.8 [6, 6, 6, 25, 25, 25]
94) 104.95 [4, 6, 6, 25, 25, 28]
95) 106.10 [4, 4, 6, 6, 25, 25, 25]
96) 107.2 [6, 6, 6, 25, 25, 28]
97) 108.35 [4, 6, 6, 6, 25, 25, 25]
98) 109.50 [4, 4, 6, 6, 25, 25, 28]
99) 110.6 [6, 6, 6, 6, 25, 25, 25]
100) 111.2 [25, 25, 25, 25] saving: 0.05
101) 112.35 [25, 25, 25, 26]
102) 113.5 [25, 25, 25, 27]
103) 114.6 [25, 25, 25, 28]
104) 115.75 [4, 25, 25, 25, 25]
105) 116.90 [4, 25, 25, 25, 26]
106) 118.0 [6, 25, 25, 25, 25]
107) 119.15 [4, 25, 25, 25, 28]
108) 120.30 [4, 4, 25, 25, 25, 25]
109) 121.4 [6, 25, 25, 25, 28]
110) 122.55 [4, 6, 25, 25, 25, 25]
111) 123.70 [4, 4, 25, 25, 25, 28]
112) 124.8 [6, 6, 25, 25, 25, 25]
113) 125.95 [4, 6, 25, 25, 25, 28]
114) 127.10 [4, 4, 6, 25, 25, 25, 25]
115) 128.2 [6, 6, 25, 25, 25, 28]
116) 129.35 [4, 6, 6, 25, 25, 25, 25]
117) 130.50 [4, 4, 6, 25, 25, 25, 28]
118) 131.6 [6, 6, 6, 25, 25, 25, 25]
119) 132.75 [4, 6, 6, 25, 25, 25, 28]
120) 133.90 [4, 4, 6, 6, 25, 25, 25, 25]
121) 135.0 [6, 6, 6, 25, 25, 25, 28]
122) 136.15 [4, 6, 6, 6, 25, 25, 25, 25]
123) 137.30 [4, 4, 6, 6, 25, 25, 25, 28]
124) 138.4 [6, 6, 6, 6, 25, 25, 25, 25]
125) 139.0 [125]
126) 140.15 [25, 25, 25, 25, 26]
127) 141.3 [25, 25, 25, 25, 27]
128) 142.4 [25, 25, 25, 25, 28]
129) 143.55 [4, 125]
130) 144.70 [4, 25, 25, 25, 25, 26]
131) 145.8 [6, 125]
132) 146.95 [4, 25, 25, 25, 25, 28]
133) 148.10 [4, 4, 125]
134) 149.2 [6, 25, 25, 25, 25, 28]
135) 150.35 [4, 6, 125]
136) 151.50 [4, 4, 25, 25, 25, 25, 28]
137) 152.6 [6, 6, 125]
138) 153.75 [4, 6, 25, 25, 25, 25, 28]
139) 154.90 [4, 4, 6, 125]
140) 156.0 [6, 6, 25, 25, 25, 25, 28]
141) 157.15 [4, 6, 6, 125]
142) 158.30 [4, 4, 6, 25, 25, 25, 25, 28]
143) 159.4 [6, 6, 6, 125]
144) 160.55 [4, 6, 6, 25, 25, 25, 25, 28]
145) 161.70 [4, 4, 6, 6, 125]
146) 162.8 [6, 6, 6, 25, 25, 25, 25, 28]
147) 163.95 [4, 6, 6, 6, 125]
148) 165.10 [4, 4, 6, 6, 25, 25, 25, 25, 28]
149) 166.2 [6, 6, 6, 6, 125]
150) 166.8 [25, 125] saving: 0.05
151) 167.95 [25, 25, 25, 25, 25, 26]
152) 169.1 [25, 25, 25, 25, 25, 27]
153) 170.2 [25, 25, 25, 25, 25, 28]
154) 171.35 [4, 25, 125]
155) 172.50 [4, 25, 25, 25, 25, 25, 26]
156) 173.6 [6, 25, 125]
157) 174.75 [4, 25, 25, 25, 25, 25, 28]
158) 175.90 [4, 4, 25, 125]
159) 177.0 [6, 25, 25, 25, 25, 25, 28]
160) 178.15 [4, 6, 25, 125]
161) 179.30 [4, 4, 25, 25, 25, 25, 25, 28]
162) 180.4 [6, 6, 25, 125]
163) 181.55 [4, 6, 25, 25, 25, 25, 25, 28]
164) 182.70 [4, 4, 6, 25, 125]
165) 183.8 [6, 6, 25, 25, 25, 25, 25, 28]
166) 184.95 [4, 6, 6, 25, 125]
167) 186.10 [4, 4, 6, 25, 25, 25, 25, 25, 28]
168) 187.2 [6, 6, 6, 25, 125]
169) 188.35 [4, 6, 6, 25, 25, 25, 25, 25, 28]
170) 189.50 [4, 4, 6, 6, 25, 125]
171) 190.6 [6, 6, 6, 25, 25, 25, 25, 25, 28]
172) 191.75 [4, 6, 6, 6, 25, 125]
173) 192.90 [4, 4, 6, 6, 25, 25, 25, 25, 25, 28]
174) 194.0 [6, 6, 6, 6, 25, 125]
175) 194.6 [25, 25, 125]
176) 195.75 [25, 25, 25, 25, 25, 25, 26]
177) 196.9 [25, 25, 25, 25, 25, 25, 27]
178) 198.0 [25, 25, 25, 25, 25, 25, 28]
179) 199.15 [4, 25, 25, 125]
180) 200.30 [4, 25, 25, 25, 25, 25, 25, 26]
181) 201.4 [6, 25, 25, 125]
182) 202.55 [4, 25, 25, 25, 25, 25, 25, 28]
183) 203.70 [4, 4, 25, 25, 125]
184) 204.8 [6, 25, 25, 25, 25, 25, 25, 28]
185) 205.95 [4, 6, 25, 25, 125]
186) 207.10 [4, 4, 25, 25, 25, 25, 25, 25, 28]
187) 208.2 [6, 6, 25, 25, 125]
188) 209.35 [4, 6, 25, 25, 25, 25, 25, 25, 28]
189) 210.50 [4, 4, 6, 25, 25, 125]
190) 211.6 [6, 6, 25, 25, 25, 25, 25, 25, 28]
191) 212.75 [4, 6, 6, 25, 25, 125]
192) 213.90 [4, 4, 6, 25, 25, 25, 25, 25, 25, 28]
193) 215.0 [6, 6, 6, 25, 25, 125]
194) 216.15 [4, 6, 6, 25, 25, 25, 25, 25, 25, 28]
195) 217.30 [4, 4, 6, 6, 25, 25, 125]
196) 218.4 [6, 6, 6, 25, 25, 25, 25, 25, 25, 28]
197) 219.55 [4, 6, 6, 6, 25, 25, 125]
198) 220.70 [4, 4, 6, 6, 25, 25, 25, 25, 25, 25, 28]
199) 221.8 [6, 6, 6, 6, 25, 25, 125]
200) 222.4 [25, 25, 25, 125] saving: 0.1