OFFSET
1,1
EXAMPLE
a(2) = ceiling( (1*2^0 + 1*2^1 + 2*2^2 + 4*2^3)/(1*2^0 + 2*2^1 + 1*2^2) ) = ceiling(43/9) = ceiling(4.7777...) = 5.
MATHEMATICA
Table[Ceiling[(1+n+2n^2+4n^3)/(1+2n+n^2)], {n, 50}] (* Harvey P. Dale, Aug 11 2019 *)
PROG
(PARI) a(n) = ceil((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 06 2003
STATUS
approved