login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A074732 a(n+3) = floor( ( a(n) + 2*a(n+1) + 3*a(n+2) )/4 ), with a(0), a(1), a(2) equal to 0, 1, 2. 2
0, 1, 2, 2, 2, 3, 3, 4, 5, 6, 8, 10, 13, 16, 21, 27, 34, 44, 56, 72, 93, 119, 153, 197, 254, 327, 421, 542, 698, 899, 1158, 1492, 1922, 2477, 3191, 4112, 5298, 6827, 8797, 11335, 14606, 18821, 24252, 31251, 40269, 51890, 66864, 86160, 111024, 143064, 184350 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

Ratio of each term to the previous approaches 1.28858..., a root of -4*x^3 + 3*x^2 + 2*x + 1.

LINKS

Andrew Howroyd, Table of n, a(n) for n = 0..1000

EXAMPLE

a(4) = 2 because ( 1 + 2*2 + 3*2 )/4 = 2.75 and 2.75 floored = 2

MATHEMATICA

RecurrenceTable[{a[0]==0, a[1]==1, a[2]==2, a[n]==Floor[(a[n-3]+2a[n-2]+ 3a[n-1])/4]}, a, {n, 50}] (* Harvey P. Dale, May 14 2014 *)

PROG

(PARI) seq(n)={my(a=vector(n+1)); a[1]=0; a[2]=1; a[3]=2; for(n=1, #a-3, a[n+3] = (a[n] + 2*a[n+1] + 3*a[n+2])\4); a} \\ Andrew Howroyd, Feb 12 2020

CROSSREFS

Cf. A074733.

Sequence in context: A239905 A016085 A018122 * A089046 A054911 A137267

Adjacent sequences:  A074729 A074730 A074731 * A074733 A074734 A074735

KEYWORD

nonn,easy

AUTHOR

Axel Harvey, Sep 05 2002

EXTENSIONS

Terms a(41) and beyond from Andrew Howroyd, Feb 12 2020

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 1 07:48 EDT 2022. Contains 357135 sequences. (Running on oeis4.)