I have a function s, which has a list and two numbers as arguments and creates a list:
and a function t, which also has a list and two numbers as arguments and creates a list:
I want to create the following nested structure:
But I want to call t and s not only 3 times, but k-times. Extra bonus would be a list which contains these nested structures for different values of k with $1\leq k \leq K$.
Any help is very much appreciated. Thank you!