login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A173259 Period 3: repeat [4, 1, 4]. 2
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, 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, 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 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..106.

Index entries for linear recurrences with constant coefficients, signature (0,0,1).

FORMULA

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

From Wesley Ivan Hurt, Jul 01 2016: (Start)

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

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

MAPLE

seq(op([4, 1, 4]), n=1..50); # Wesley Ivan Hurt, Jul 01 2016

MATHEMATICA

PadRight[{}, 100, {4, 1, 4}] (* Wesley Ivan Hurt, Jul 01 2016 *)

PROG

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

(MAGMA) &cat [[4, 1, 4]^^30]; // Wesley Ivan Hurt, Jul 01 2016

CROSSREFS

Sequence in context: A060037 A229705 A321593 * A267633 A021711 A117445

Adjacent sequences:  A173256 A173257 A173258 * A173260 A173261 A173262

KEYWORD

nonn,easy,less

AUTHOR

Paul Curtz, Nov 22 2010

STATUS

approved

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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 18 07:10 EDT 2019. Contains 325134 sequences. (Running on oeis4.)