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!)
A173686 Periodic with period 12: repeat [2,8,2,2,8,5,5,8,5,5,8,2]. 0

%I #21 Jun 09 2023 22:00:30

%S 2,8,2,2,8,5,5,8,5,5,8,2,2,8,2,2,8,5,5,8,5,5,8,2,2,8,2,2,8,5,5,8,5,5,

%T 8,2,2,8,2,2,8,5,5,8,5,5,8,2,2,8,2,2,8,5,5,8,5,5,8,2,2,8,2,2,8,5,5,8,

%U 5,5,8,2,2,8,2,2,8,5,5,8,5,5,8,2,2,8,2,2,8,5,5,8,5,5,8,2,2,8,2,2,8,5,5,8,5,5,8,2

%N Periodic with period 12: repeat [2,8,2,2,8,5,5,8,5,5,8,2].

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

%F G.f.: ( -x*(2+8*x+2*x^2+3*x^5+5*x^6+8*x^7+2*x^8) ) / ( (x-1)*(x^2+1)*(1+x+x^2)*(x^4-x^2+1) ). - _R. J. Mathar_, Jul 02 2011

%F a(n) = a(n-3) - a(n-6) + a(n-9). - _Wesley Ivan Hurt_, Jun 09 2023

%t LinearRecurrence[{0, 0, 1, 0, 0, -1, 0, 0, 1},{2, 8, 2, 2, 8, 5, 5, 8, 5},108] (* _Ray Chandler_, Aug 27 2015 *)

%o (PARI) a(n)=[2,8,2,2,8,5,5,8,5,5,8,2][(n-1)%12+1]; \\ _Jinyuan Wang_, Feb 26 2020

%Y Cf. A181668.

%K nonn,easy

%O 1,1

%A _Paul Curtz_, Nov 25 2010

%E Extended by _Ray Chandler_, Aug 27 2015

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 29 05:48 EDT 2024. Contains 371265 sequences. (Running on oeis4.)