# n et p sont initialisés dans les lignes précédentes t = [ [ 0 for j in range(p) ] for i in range(n) ] for k in range(n*p): t[k%n][k%p] = k