fork(1) download
  1. @(n,k)sum(k.^(0:n^2-1))
  2.  
  3. ans(3,6)
Success #stdin #stdout 0.46s 121792KB
stdin
Standard input is empty
stdout
ans =

@(n, k) sum (k .^ 0:n ^ 2 - 1)

ans =  2015539