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!)
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
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 * A021711 A334487 A327304
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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 19 04:58 EDT 2024. Contains 370952 sequences. (Running on oeis4.)