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.

A047238 Numbers that are congruent to {0, 2} mod 6.

This page as a plain text file.
%I A047238 #81 Jul 24 2025 04:03:12
%S A047238 0,2,6,8,12,14,18,20,24,26,30,32,36,38,42,44,48,50,54,56,60,62,66,68,
%T A047238 72,74,78,80,84,86,90,92,96,98,102,104,108,110,114,116,120,122,126,
%U A047238 128,132,134,138,140,144,146,150,152,156,158,162
%N A047238 Numbers that are congruent to {0, 2} mod 6.
%C A047238 Complement of A047251, or "Polyrhythmic Sequence" P(2,3); the present sequence represents where the "rests" occur in a "3 against 2" polyrhythm. (See A267027 for definition and description). - _Bob Selcoe_, Jan 12 2016
%H A047238 Bruno Berselli, <a href="/A047238/b047238.txt">Table of n, a(n) for n = 1..10000</a>
%H A047238 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (1,1,-1).
%F A047238 From _Bruno Berselli_, Jun 24 2010: (Start)
%F A047238 G.f.: 2*x*(1+2*x)/((1+x)*(1-x)^2).
%F A047238 a(n) = a(n-1) + a(n-2) - a(n-3), a(0)=0, a(1)=2, a(2)=6.
%F A047238 a(n) = (6*n - (-1)^n-7)/2.
%F A047238 a(n) = 2*A032766(n-1). (End)
%F A047238 a(n) = 6*n - a(n-1) - 10 (with a(1)=0). - _Vincenzo Librandi_, Aug 05 2010
%F A047238 a(n+1) = Sum_{k>=0} A030308(n,k)*A111286(k+2). - _Philippe Deléham_, Oct 17 2011
%F A047238 a(n) = 2*floor(3*n/2). - _Enrique Pérez Herrero_, Jul 04 2012
%F A047238 Sum_{n>=2} (-1)^n/a(n) = sqrt(3)*Pi/36 + log(3)/4. - _Amiram Eldar_, Dec 13 2021
%F A047238 E.g.f: 3*(x-1)*exp(x) - cosh(x) + 4. - _David Lovler_, Jul 11 2022
%t A047238 Select[Range[0,200],MemberQ[{0,2},Mod[#,6]]&] (* or *) LinearRecurrence[ {1,1,-1},{0,2,6},70] (* _Harvey P. Dale_, Jun 15 2011 *)
%o A047238 (PARI) forstep(n=0,200,[2,4],print1(n", ")) \\ _Charles R Greathouse IV_, Oct 17 2011
%o A047238 (Magma) [n: n in [0..200]|n mod 6 in {0,2}]; // _Vincenzo Librandi_, Jan 12 2016
%Y A047238 Cf. A047270 [(6*n-(-1)^n-1)/2], A047235 [(6*n-(-1)^n-3)/2], A047241 [(6*n-(-1)^n-5)/2].
%Y A047238 Cf. A047251, A267027.
%K A047238 nonn,easy
%O A047238 1,2
%A A047238 _N. J. A. Sloane_