What is the easiest way to find the nearest power of 2 + 3 in Pd for tabosc4~ to work correctly?

Basically, what I'm doing is as follows:

Copying one table multiple times into a larger table so that I get X copies in the larger table (the reason I'm doing this is so I can modify each copy slightly, say in amplitude, or even use a different table at that position).

I correctly resize the larger table so that it can hold X copies of the smaller table, but I need to be able to use tabosc4~ on this larger table, so what I really need is a patch that can compute the larger table's pow2 +3 size.