I'm learning about data structures and have been reading up on upper bounds. Most of the stuff I understand but my professor gave us a problem in class to solve on our own for fun. I'm not sure how to find the $O$ notation as a function of $N$ for this one.
for (i=1; i<=N; i++)
for (j=1; j<=N; j+=i)
x=i+j;
Also, does j+=1
make things different?