Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #6 Jan 15 2019 18:46:29
%S 1,2,9,6,6,7,1,2,4,1,2,7,2,7,2,1,4,2,1,5,2,1,9,5,3,2,1,1,8,6,5,4,3,3,
%T 3,2,2,2,2,3,3,3,4,4,5,6,8,1,1,1,2,3,4,6,9,1,2,3,5,8,1,2,3,6,1,1,3,5,
%U 1,2,3,7,1,2,5,1,2,4,1,2,4,1,2,5,1,2,6,1,3,8,2,5,1,3,8,2,5,1,3,1,2,7,2,5,1
%N Main diagonal of A138028; the most significant digit of n^(n-1).
%H Robert Israel, <a href="/A138029/b138029.txt">Table of n, a(n) for n = 1..10000</a>
%p f:= n -> floor(10^frac((n-1)*log[10](n))):
%p map(f, [$1..200]); # _Robert Israel_, Jan 15 2019
%t f[n_, k_] := Quotient[n^k, 10^Floor[k*Log[10, n]]]; Table[ f[ n, n - 1], {n, 105}]
%Y Cf. A061505, A138028.
%K base,nonn
%O 1,2
%A _Robert G. Wilson v_, Feb 10 2008
%E Name corrected by _Robert Israel_, Jan 15 2019