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.
%I A110551 #32 Dec 14 2023 05:18:15 %S A110551 1,3,5,5,3,1,1,3,5,5,3,1,1,3,5,5,3,1,1,3,5,5,3,1,1,3,5,5,3,1,1,3,5,5, %T A110551 3,1,1,3,5,5,3,1,1,3,5,5,3,1,1,3,5,5,3,1,1,3,5,5,3,1,1,3,5,5,3,1,1,3, %U A110551 5,5,3,1,1,3,5,5,3,1,1,3,5,5,3,1,1,3,5,5,3,1 %N A110551 Period 6: repeat [1, 3, 5, 5, 3, 1]. %C A110551 a(n) = A162699(n+1) (Modd 7) = A204453(A162699(n+1)), n>=0, where the nonnegative members of the seven residue classes Mod 7 (not to be confused with mod 7), called [m] for m=0..6, are given in the array A113807, if there the last row, starting with 7 is taken as class [0] after adding a 0 in front. Here only the classes [1], [3] and [5] are relevant. For Modd n residue classes see a comment on A203571. [_Wolfdieter Lang_, Feb 09 2012] %C A110551 Continued fractions expansion of (8+sqrt(905))/29 = 1.3132144107925.. - _R. J. Mathar_, Mar 08 2012 %H A110551 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (2,-2,1). %F A110551 From _R. J. Mathar_, Oct 15 2014: (Start) %F A110551 G.f.: ( 1+x+x^2 ) / ( (1-x)*(x^2-x+1) ). %F A110551 a(n) = a(n-1) - a(n-2) + a(n-3) - a(n-4) + a(n-5) for n>4. %F A110551 a(n) = 3 + 2*sin(Pi*n/3)/sqrt(3) - 2*cos(Pi*n/3). %F A110551 a(n) = A001045(n+2) mod 6. (End) %F A110551 From _Wesley Ivan Hurt_, Jun 29 2016: (Start) %F A110551 a(n) = a(n-6) for n>5. %F A110551 a(n) = 2*a(n-1) - 2*a(n-2) + a(n-3) for n>2. (End) %e A110551 Modd 7 classes for positive odd numbers reduced mod 7: a(3)=5 because A162699(4)=9 (the fourth positive odd number not divisible by 7), and 9 is a member of the Modd 7 class [5] = {5,9,19,23,...}. %e A110551 A162699: 1, 3, 5, 9, 11, 13, 15, 17, 19, 23, 25, 27,... %e A110551 Modd 7: 1, 3, 5, 5, 3, 1, 1, 3, 5, 5, 3, 1,... [_Wolfdieter Lang_, Feb 09 2012] %p A110551 A110551:=n->[1, 3, 5, 5, 3, 1][(n mod 6)+1]: seq(A110551(n), n=0..100); # _Wesley Ivan Hurt_, Jun 29 2016 %t A110551 PadRight[{}, 100, {1, 3, 5, 5, 3, 1}] (* _Wesley Ivan Hurt_, Jun 29 2016 *) %o A110551 (Magma) &cat [[1, 3, 5, 5, 3, 1]^^30]; // _Wesley Ivan Hurt_, Jun 29 2016 %o A110551 (PARI) x='x+O('x^50); Vec((1+x+x^2)/((1-x)*(x^2-x+1))) \\ _G. C. Greubel_, Aug 31 2017 %Y A110551 Cf. A001045, A105198, A110549, A110550, A113807, A162699, A203571, A204453. %K A110551 easy,nonn %O A110551 0,2 %A A110551 _Paul Barry_, Jul 26 2005