OFFSET
1,1
EXAMPLE
a(2) = floor(2*(1*2^0+1*2^1+2*2^2+4*2^3)/(1*2^0+2*2^1+1*2^2)) = floor(2*43/9) = floor(9.55556) = 9.
MATHEMATICA
Table[Floor[(2(1+n+2n^2+4n^3))/(1+2n+n^2)], {n, 50}] (* Harvey P. Dale, Apr 01 2018 *)
PROG
(PARI) a(n) = floor(2*((1 + n + 2*n^2 + 4*n^3)/(1 + 2*n + n^2))); \\ Michel Marcus, Aug 31 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wang Dan (wangdan01(AT)lycos.com), Aug 15 2003
EXTENSIONS
Definition corrected by Michel Marcus, Aug 31 2013
STATUS
approved