Number patters

No.11218498 ViewReplyOriginalReport
Hello , i was playing around with some pattern recognition .
ive just came up with this triangular patter loop , seems strange.
at low values of the array the function seems random
What /sci/ thinks about?
import numpy as np
import matplotlib.pyplot as plt

n=100

t=np.zeros((n,n))
print(t)
for i in range(n):
for j in range(1,n):
t[(i,j)]=(i*3-1)%j
t[(i,j-1)]=(i/2)%j
plt.plot(t)
plt.show()