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
Seems like cookies are disabled on this browser, please enable them to open this website
Sequence Equation
You are viewing a single comment's thread. Return to all comments →
python3