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!)
A226238 a(n) = (n^n - n)/(n - 1). 5

%I #28 Sep 28 2023 14:21:01

%S 2,12,84,780,9330,137256,2396744,48427560,1111111110,28531167060,

%T 810554586204,25239592216020,854769755812154,31278135027204240,

%U 1229782938247303440,51702516367896047760,2314494592664502210318,109912203092239643840220

%N a(n) = (n^n - n)/(n - 1).

%C a(n) expressed in base n is written with (n-1) ones followed by a zero. - _Michel Marcus_, Aug 25 2013

%H Michael De Vlieger, <a href="/A226238/b226238.txt">Table of n, a(n) for n = 2..387</a>

%H Tanya Khovanova and Gregory Marton, <a href="https://arxiv.org/abs/2305.10357">Archive Labeling Sequences</a>, arXiv:2305.10357 [math.HO], 2023. See p. 9.

%F a(n) = Sum_{k=1..n-1} n^k.

%F a(n) = A023037(n) - 1, for n>1. - _Michel Marcus_, Aug 25 2013

%t Array[(#^# - #)/(# - 1) &, 18, 2] (* _Michael De Vlieger_, May 24 2023 *)

%o (PARI) a(n)=(n^n-n)/(n-1)

%o (Python)

%o def A226238(n): return (n**n-n)//(n-1) # _Chai Wah Wu_, Sep 28 2023

%Y A diagonal of A228275.

%K nonn,easy

%O 2,1

%A _Ralf Stephan_, Aug 25 2013

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 24 05:49 EDT 2024. Contains 371918 sequences. (Running on oeis4.)