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.

A188167 a(2+4*n)=1+2*n, otherwise a(n)=2*n.

This page as a plain text file.
%I A188167 #27 Aug 08 2025 15:16:12
%S A188167 0,2,1,6,8,10,3,14,16,18,5,22,24,26,7,30,32,34,9,38,40,42,11,46,48,50,
%T A188167 13,54,56,58,15,62,64,66,17,70,72,74,19,78,80,82,21,86,88,90,23,94,96,
%U A188167 98,25,102,104,106,27,110,112,114,29,118,120,122,31,126,128,130,33,134,136,138,35,142,144,146,37,150,152,154,39
%N A188167 a(2+4*n)=1+2*n, otherwise a(n)=2*n.
%H A188167 <a href="/index/Rec#order_08">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,2,0,0,0,-1).
%F A188167 a(n) = 2*a(n-4) - a(n-8).
%F A188167 a(n) = a(n-4) + (period 4: repeat [8, 8, 2, 8]).
%F A188167 From _Bruno Berselli_, Apr 08 2011: (Start)
%F A188167 G.f.:  x*(2+x+6*x^2+8*x^3+6*x^4+x^5+2*x^6)/(1-x^4)^2.
%F A188167 a(n) = (16 - 3*(1+(-1)^n)*(1-i^n))*n/8, where i=sqrt(-1). (End)
%F A188167 E.g.f.: x*(8*cosh(x) - 3*sin(x) + 5*sinh(x))/4. - _Stefano Spezia_, Aug 08 2025
%t A188167 LinearRecurrence[{0,0,0,2,0,0,0,-1},{0,2,1,6,8,10,3,14},80] (* _Harvey P. Dale_, Nov 27 2012 *)
%Y A188167 Cf. A005408, A005843, A016825.
%K A188167 nonn,easy
%O A188167 0,2
%A A188167 _Paul Curtz_, Mar 23 2011