hello, im messing around with recursion and attempting to do things without loops in apl. im currently tackling the power operator, trying to use it to give me the nth element of a sequence, provided the nth element is beneath a certain limit.
i have the mathematical sequence: {2, 10, 50, 250,...}
and i wish to get the last element of it before the elements go over 10000.
in this example, the value i would be looking for is 6250, as the next element after that is 31250, which is more than 10000.