The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation. Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A124797 Sum of cyclic permutations of 123...n seen as number written in base n+1: ((n+1)^n-1)*(n+1)/2. 3
 1, 12, 126, 1560, 23325, 411768, 8388604, 193710240, 4999999995, 142655835300, 4458050224122, 151437553296120, 5556003412779001, 218946945190429680, 9223372036854775800, 413620130943168382080, 19673204037648268787703 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS Sequence A083956 becomes "unnatural" for n>9. The present sequence is more universal since 10 is not singled out as a particular value. See A124798 for the sequence of digits of a(n) in base n+1 and for more results. LINKS Vincenzo Librandi, Table of n, a(n) for n = 1..200 FORMULA a(n) = (n+1)/2*((n+1)^n-1). EXAMPLE a(2) = 12 + 21 = 110 = 12 where [b] indicates the basis b in which the number is written; a(3) = 123 + 231 + 312 = 126; a(4) = 1234 + 2341 + 3412 + 4123 = 22220 = 1560,... MAPLE a:=proc(n) local b, m, i, s; b:=n+1: m:=add(i*b^(n-i), i=1..n): s:=m: for i to n-1 do m:=b^(n-1)*modp(m, b)+iquo(m, b): s:=s+m: od: s end; # or simply # a := n -> (n+1)/2*((n+1)^n-1) MATHEMATICA Table[((n+1)^n-1)*(n+1)/2, {n, 22}] (* Vladimir Joseph Stephan Orlovsky, Dec 28 2010 *) PROG (MAGMA) [((n + 1)^n - 1)*(n + 1) div 2: n in [1..20]]; // Vincenzo Librandi, Jan 09 2013 CROSSREFS Cf. A083956, A124798. Sequence in context: A264896 A062199 A199528 * A204768 A045508 A215774 Adjacent sequences:  A124794 A124795 A124796 * A124798 A124799 A124800 KEYWORD easy,nonn AUTHOR M. F. Hasler, Nov 07 2006 STATUS approved

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

Last modified October 19 11:02 EDT 2021. Contains 348079 sequences. (Running on oeis4.)