OFFSET
1,1
FORMULA
a(n) = n * floor(e^n/n) = n* A107316(n).
MAPLE
seq(n*floor(exp(n)/n), n=1..30); # Robert Israel, Nov 09 2014
MATHEMATICA
f[n_] := n*Floor[Exp[n]/n]; Array[f, 28] (* Ray Chandler, Feb 19 2007 *)
f[n_] := -First@ Mod[ Exp[n], n]; Array[f, 27] (* Robert G. Wilson v, Feb 19 2007 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Feb 14 2007
EXTENSIONS
Extended by Robert G. Wilson v and Ray Chandler, Feb 19 2007
STATUS
approved