OFFSET
1,2
LINKS
Christian N. K. Anderson, Table of n, a(n) for n = 1..100
FORMULA
A191690(n)+1. - Robert G. Wilson v, Apr 16 2015
EXAMPLE
a(3) = 3^3-3^2-3 = 27-9-3 = 15.
MAPLE
a:=n->n^n-sum(n^j, j=1..n-1): seq(a(n), n=1..19); # Emeric Deutsch, Apr 16 2006
MATHEMATICA
s[n_] := Sum[n^i, {i, 1, n - 1}]; Table[n^n - s[n], {n, 17}] (* Carlos Eduardo Olivieri, Apr 14 2015 *)
f[n_] := ((n - 2) n^n + n)/(n - 1); f[1] = 1; Array[f, 18] (* Robert G. Wilson v, Apr 15 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), Apr 11 2006
STATUS
approved