Assume that a group of people is going to an excursion and our task is to seat them into buses with several constraints each saying that a pair of people does not want to see each other in the same bus. This is a well-known coloring problem and it can be solved in O * (2 n ) time by the inclusion-exclusion principle as shown by Björklund, Husfeldt, and Koivisto in 2009. Another approach to solve this problem in O * (2 n ) time is to use the fast Fourier transform. A graph is k-colorable if and only if the k-th power of a polynomial containing a monomial n i=1 x[i∈I] i for each independent set I ⊆ [n] of the graph, contains the monomial x 1 x 2 . . . x n .Assume now that we have additional constraints: the group of people contains several infants and these infants should be accompanied by their relatives in a bus. We show that if the number of infants is linear then the problem can be solved in O * ((2 − ε) n ) time. We use this approach to improve known bounds for several NP-hard problems (the traveling salesman problem, the graph coloring problem, the problem of counting perfect matchings) on graphs of bounded average degree, as well as to simplify the proofs of several known results. * This paper is based on the same results as [15], but the presentation of the results and the whole discuss have been reworked substantially. Research is partially supported by the Government of the Russian Federation (grant 14.Z50.31.0030).