login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Triangle read by rows: T(n,k) = (n-k+1)^(n-k), n>=1, 1<=k<=n.
2

%I #7 Sep 06 2022 14:08:19

%S 1,2,1,9,2,1,64,9,2,1,625,64,9,2,1,7776,625,64,9,2,1,117649,7776,625,

%T 64,9,2,1,2097152,117649,7776,625,64,9,2,1,43046721,2097152,117649,

%U 7776,625,64,9,2,1,1000000000,43046721,2097152,117649,7776,625,64,9,2,1

%N Triangle read by rows: T(n,k) = (n-k+1)^(n-k), n>=1, 1<=k<=n.

%H Reinhard Zumkeller, <a href="/A095890/b095890.txt">Rows n = 1..120 of triangle, flattened</a>

%t Table[(n-k+1)^(n-k),{n,10},{k,n}]//Flatten (* _Harvey P. Dale_, Sep 06 2022 *)

%o (Haskell)

%o a095890 n k = (n - k + 1) ^ (n - k)

%o a095890_row n = map (a095890 n) [1..n]

%o a095890_tabl = map a095890_row [1..]

%o -- _Reinhard Zumkeller_, Jul 07 2013

%K easy,nonn,tabl

%O 1,2

%A Herman Jamke (hermanjamke(AT)fastmail.fm), Jul 10 2004