OFFSET
0,3
COMMENTS
Ratio of each term to the preceding approaches 1.46172263..., a root of -5*x^4 + 4*x^3 + 3*x^2 + 2*x + 1.
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..1000
EXAMPLE
a(7) = 12 because (3 + 2*4 + 3*5 + 4*8)/5 = 12.2 and 12.2 floored = 12.
MATHEMATICA
Nest[Append[#, Floor@ Total[Range[4] * #[[-4 ;; -1]]/5 ]] &, Range[0, 3], 39] (* Michael De Vlieger, Feb 12 2020 *)
PROG
(PARI) seq(n)={my(a=vector(n+1)); a[1]=0; a[2]=1; a[3]=2; a[4]=3; for(n=1, #a-4, a[n+4] = (a[n] + 2*a[n+1] + 3*a[n+2] + 4*a[n+3])\5); a} \\ Andrew Howroyd, Feb 12 2020
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Axel Harvey, Sep 05 2002
EXTENSIONS
Terms a(31) and beyond from Andrew Howroyd, Feb 12 2020
STATUS
approved