OFFSET
1,3
LINKS
ArtOfProblemSolving forum, 45th IMO Team Selection Test Lincoln, Nebraska
FORMULA
For odd n, a(n) = ((n-1)^n-n+1)/n.
For even n, a(n) = ((n-1)^n-1)/n.
a(n) = floor((n-1)^n / n). - From Alex Ratushnyak, Aug 04 2012.
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Max Alekseyev, Feb 20 2010
STATUS
approved