The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A173259 Period 3: repeat [4, 1, 4]. 2

%I

%S 4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,

%T 1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,

%U 4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4

%N Period 3: repeat [4, 1, 4].

%H <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,1).

%F G.f.: (x + 4*x^2 + x^3)/(1 - x^3).

%F From _Wesley Ivan Hurt_, Jul 01 2016: (Start)

%F a(n) = a(n-3) for n>3.

%F a(n) = 3 + cos(2*n*Pi/3) + sqrt(3)*sin(2*n*Pi/3). (End)

%p seq(op([4, 1, 4]), n=1..50); # _Wesley Ivan Hurt_, Jul 01 2016

%t PadRight[{}, 100, {4, 1, 4}] (* _Wesley Ivan Hurt_, Jul 01 2016 *)

%o (PARI) a(n)=[4,1,4][n%3+1] \\ _Charles R Greathouse IV_, Jun 02 2011

%o (MAGMA) &cat [[4, 1, 4]^^30]; // _Wesley Ivan Hurt_, Jul 01 2016

%K nonn,easy,less

%O 1,1

%A _Paul Curtz_, Nov 22 2010

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

Last modified June 4 11:32 EDT 2020. Contains 334825 sequences. (Running on oeis4.)