OFFSET
0,3
COMMENTS
FORMULA
a(n) = (n^(n+1))*(n + 1)/2.
EXAMPLE
a(2) = (2^(2+1))*(2 + 1)/2 = 8*3/2 = 12. Note that the 2^2 sequences 1, 1; 1, 2; 2, 1; 2, 2 have 1 + 1 + 1 + 2 + 2 + 1 + 2 + 2 = 12 as the sum of all their terms (each element of {1, 2, ... , n} occurs n^(n-1) times in each of the n positions of the n^n sequences and (1 + 2 + ... + n)*n*n^(n-1) = A000217(n)*A000312(n)).
CROSSREFS
KEYWORD
nonn
AUTHOR
Rick L. Shepherd, Jun 26 2005
STATUS
approved