Generate an Array from a Function on Indices

Here, functions are applied to the indices of the arrays.

    
In[1]:=
Click for copyable input
Out[1]//MatrixForm=
In[2]:=
Click for copyable input
Out[2]//MatrixForm=