You are viewing a single comment's thread. Return to all comments →
python3
def permutationEquation(p): result = [] for i in range(len(p)): p1 = p.index(i+1) + 1 result.append(p.index(p1) + 1) return result
Sequence Equation
You are viewing a single comment's thread. Return to all comments →
python3