cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A131282 Period 6: repeat [1, 2, 3, 3, 4, 5].

This page as a plain text file.
%I A131282 #32 Mar 15 2024 02:18:42
%S A131282 1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,
%T A131282 4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,
%U A131282 3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3
%N A131282 Period 6: repeat [1, 2, 3, 3, 4, 5].
%C A131282 Decimal expansion of 13705/111111. - _Klaus Brockhaus_, May 17 2010
%H A131282 <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,0,0,1).
%F A131282 a(n) = 3 - 2*cos(Pi*n/3)/3 - 2*sin(Pi*n/3)/sqrt(3) - cos(2*Pi*n/3) - sin(2*Pi*n/3)/sqrt(3) - (-1)^n/3. - _R. J. Mathar_, Oct 08 2011
%F A131282 From _Wesley Ivan Hurt_, Jun 20 2016: (Start)
%F A131282 G.f.: (1+2*x+3*x^2+3*x^3+4*x^4+5*x^5)/(1-x^6).
%F A131282 a(n) = a(n-6) for n>5. (End)
%p A131282 A131282:=n->[1, 2, 3, 3, 4, 5][(n mod 6)+1]: seq(A131282(n), n=0..100); # _Wesley Ivan Hurt_, Jun 20 2016
%t A131282 PadLeft[{}, 18*6, {1,2,3,3,4,5}] (* _Harvey P. Dale_, Sep 23 2011 *)
%o A131282 (PARI) a(n)=1+n%6-n%6\3 \\ _Jaume Oliver Lafont_, Aug 28 2009
%o A131282 (Magma) &cat [[1, 2, 3, 3, 4, 5]^^20]; // _Wesley Ivan Hurt_, Jun 20 2016
%Y A131282 Cf. A178038 (decimal expansion of (161+sqrt(44310))/259). - _Klaus Brockhaus_, May 17 2010
%K A131282 nonn,easy
%O A131282 0,2
%A A131282 _Paul Curtz_, Oct 21 2007