login
a(n) = round( (n + 1/n)^n ).
24

%I #17 Feb 05 2024 02:00:02

%S 2,6,37,326,3802,54992,948645,18992711,432655358,11046221254,

%T 312347907386,9688154906658,327018557066165,11932588574197763,

%U 468012768020438830,19634066192684343923,877272066059957914874

%N a(n) = round( (n + 1/n)^n ).

%H Vincenzo Librandi, <a href="/A014056/b014056.txt">Table of n, a(n) for n = 1..300</a>

%t Table[Round[(n+1/n)^n], {n,50}] (* _G. C. Greubel_, Feb 05 2024 *)

%o (Magma) [Round((n+1/n)^n): n in [1..20]]; // _Vincenzo Librandi_, Oct 20 2011

%o (PARI) a(n)=round((n+1/n)^n) \\ _Charles R Greathouse IV_, Jul 01 2013

%o (SageMath) [round((n+1/n)^n) for n in range(1,51)] # _G. C. Greubel_, Feb 05 2024

%Y Cf. A014052, A014058.

%K nonn

%O 1,1

%A _N. J. A. Sloane_