Sep-29-2020, 05:58 PM
(Sep-29-2020, 05:27 PM)DPaul Wrote: [ -> ]For the time being it works only for 3 and 5, perhaps with some work it will do all odd numbers.
If you are using "peeling the onion" approach then number of layers (cycles) can be determined with:
cycles = sum(divmod(n, 2)) # n = 5 -> 3 # n = 3 -> 2