cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A062813 a(n) = Sum_{i=0..n-1} i*n^i.

This page as a plain text file.
%I A062813 #53 Apr 04 2024 10:13:31
%S A062813 0,2,21,228,2930,44790,800667,16434824,381367044,9876543210,
%T A062813 282458553905,8842413667692,300771807240918,11046255305880158,
%U A062813 435659737878916215,18364758544493064720,824008854613343261192,39210261334551566857170,1972313422155189164466189,104567135734072022160664820
%N A062813 a(n) = Sum_{i=0..n-1} i*n^i.
%C A062813 Largest Katadrome (number with digits in strict descending order) in base n.
%C A062813 The largest permutational number (A134640) of order n. These numbers are isomorphic with antidiagonal permutation matrices of order n. Where diagonal matrices are a[i,1+n-i]=1 {i=1,n} a[i<>1+n-i]=0 for smallest permutational numbers of order n see A023811. - _Artur Jasinski_, Nov 07 2007
%C A062813 Permutational numbers A134640 isomorphic with permutation matrix generators of cyclic groups, n-th root of unity matrices. - _Artur Jasinski_, Nov 07 2007
%C A062813 Rephrasing: Largest pandigital number in base n (in the sense of A050278, which is base 10); e.g., a(10) = A050278(3265920), its final term. With a(1) = 1 instead of 0, also accommodates unary (A000042). - _Rick L. Shepherd_, Jul 10 2017
%H A062813 Reinhard Zumkeller, <a href="/A062813/b062813.txt">Table of n, a(n) for n = 1..400</a>
%H A062813 Chai Wah Wu, <a href="https://arxiv.org/abs/2403.20304">Pandigital and penholodigital numbers</a>, arXiv:2403.20304 [math.GM], 2024. See p. 1.
%F A062813 a(n) = n^n - (n^n-n)/(n-1)^2 for n>1. - _Dean Hickerson_, Jun 26 2001
%F A062813 a(n) = A134640(n, A000142(n)). - _Reinhard Zumkeller_, Aug 29 2014
%p A062813 0,seq(n*((n-2)*n^n + 1)/(n-1)^2,n=2..100); # _Robert Israel_, Sep 03 2014
%t A062813 Table[Sum[i*n^i, {i, 0, -1 + n}], {n, 17}] (* _Olivier Gérard_, Jun 23 2001 *)
%t A062813 a[n_] := FromDigits[ Range[ n-1, 0, -1], n]; Array[a, 18] (* _Robert G. Wilson v_, Sep 03 2014 *)
%o A062813 (PARI) a(n) = sum(i=0,n-1,i*n^i)
%o A062813 (PARI) a(n) = if (n==1,0, my(t=n^n); t-(t-n)/(n-1)^2); \\ _Joerg Arndt_, Sep 03 2014
%o A062813 (Haskell)
%o A062813 a062813 n = foldr (\dig val -> val * n + dig) 0 [0 .. n - 1]
%o A062813 -- _Reinhard Zumkeller_, Aug 29 2014
%o A062813 (Python)
%o A062813 def A062813(n): return (m:=n**n)-(m-n)//(n-1)**2 if n>1 else 0 # _Chai Wah Wu_, Mar 18 2024
%Y A062813 Last elements of rows of A061845 (for n>1).
%Y A062813 Cf. A134640, A134641, A134642, A134643, A134644, A023811, A062808.
%Y A062813 Cf. A000142, A000042, A050278.
%K A062813 nonn,easy
%O A062813 1,2
%A A062813 _Olivier Gérard_, Jun 23 2001