OFFSET
1,2
LINKS
Eric Weisstein's World of Mathematics, Repunit
FORMULA
a(n) = Sum((n+1)^k: 0<=k<=2*(n-1)).
EXAMPLE
a(4) = [1111111]_5 = (((((5+1)*5+1)*5+1)*5+1)*5+1)*5+1 = 19531.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Nov 21 2006
STATUS
approved