OFFSET
1,2
COMMENTS
Permutational numbers A134640 isomorphic with permutation matrix generators of cyclic groups, n-th root of unity matrices. - Artur Jasinski, Nov 07 2007
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..387
FORMULA
a(n) = (n^(n+1)-n^3+n^2-n)/(n-1)^2 for n>1. - Dean Hickerson, Jun 26, 2001
MATHEMATICA
Sum[n^i*(n - i), {i, 1, n}]
a = {}; b = {}; c = {}; Do[AppendTo[b, n]; c = b; AppendTo[c, 0]; AppendTo[a, FromDigits[c, n + 1]], {n, 1, 20}]; a (* Artur Jasinski, Nov 07 2007 *)
PROG
(PARI) a(n) = sum(i=1, n, n^i*(n-i)); \\ Michel Marcus, Mar 26 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Olivier Gérard, Jun 23 2001
STATUS
approved