An n x n array v is defined as follows: v[i,j]=i-j for all i, j, 1<=i <=n, 1<=j <=n The sum of the elements of the array v is-

An n x n array v is defined as follows:

v[i,j]=i-j for all i, j, 1<=i <=n, 1<=j <=n

The sum of the elements of the array v is-

  1. a) 0
  2. b) n-1
  3. c) n²-3n+2
  4. d) n²(n+1)/2

From the Combined Bank Assistant Programmer (CSE) March 2021 – Preliminary exam, question 14 of 86.

More from this paper