login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A080526 Final entry in n-th row of triangle in A080524. 2

%I #10 Oct 04 2020 19:16:37

%S 1,3,10,67,627,7781,117652,2097159,43046725,1000000009,25937424606,

%T 743008370699,23298085122487,793714773254157,29192926025390632,

%U 1152921504606846991,48661191875666868489,2185911559738696531985

%N Final entry in n-th row of triangle in A080524.

%F For odd n, a(n) = n^(n-1) + (n-1)/2; for even n, a(n) = n^(n-1) + n - 1. Alternatively, a(n) = n^(n-1) + (n-1)/(1 + (n mod 2)). - _Max Alekseyev_, Oct 23 2008

%t Table[If[OddQ[n],n^(n-1)+(n-1)/2,n^(n-1)+n-1],{n,20}] (* _Harvey P. Dale_, Oct 04 2020 *)

%o (PARI) { a(n) = n^(n-1)+(n-1)/(n%2 + 1) } \\ _Max Alekseyev_, Oct 23 2008

%Y Cf. A080524, A080525.

%K nonn

%O 1,2

%A _Amarnath Murthy_, Mar 21 2003

%E More terms and formula from _Max Alekseyev_, Oct 23 2008

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)