Using two 74ls160, which is a synchronous bcd counter, with asynchronous clear.

What occurred to me is that, since I need to start counting at 24 and have modulo 39, the final counter would be 24 + 39 = 63, so it would count from 24 to 62 and thus I can have modulo 39 as they ask me.

To do this, using the inputs of load DCBA (8421), I want to preload 0010 in the tens counter and 0100 in the ones counter, but to obtain the combinational logic I would have to make a table D1 C1 B1 A1 D0 C0 B0 A0 | / LOAD and when you have 24 (0010 0100) the / LOAD input would be 0, and then minimizing by Karnaugh, you would get a gated array for the / LOAD input. Is there a simpler way to preload 24, without having to solve K'maps for so many variables? Thanks!!