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 A016051 #38 Nov 23 2024 05:46:51 %S A016051 3,6,12,15,21,24,30,33,39,42,48,51,57,60,66,69,75,78,84,87,93,96,102, %T A016051 105,111,114,120,123,129,132,138,141,147,150,156,159,165,168,174,177, %U A016051 183,186,192,195,201,204,210,213,219,222,228,231,237,240 %N A016051 Numbers of the form 9*k+3 or 9*k+6. %H A016051 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (1,1,-1). %F A016051 a(n) = 3*A001651(n). %F A016051 a(n+1) = a(n) + its digital root in decimal base. %F A016051 From _R. J. Mathar_, Dec 16 2009: (Start) %F A016051 a(n) = a(n-1) + a(n-2) - a(n-3) = 9*n/2 - 9/4 - 3*(-1)^n/4. %F A016051 G.f: 3*x*(1+x+x^2)/((1+x)*(x-1)^2). (End) %F A016051 a(n) = 9*(n-1) - a(n-1) (with a(1)=3). - _Vincenzo Librandi_, Nov 19 2010 %F A016051 Sum_{n>=1} (-1)^(n+1)/a(n) = Pi/(9*sqrt(3)). - _Amiram Eldar_, Sep 26 2022 %F A016051 From _Amiram Eldar_, Nov 22 2024: (Start) %F A016051 Product_{n>=1} (1 - (-1)^n/a(n)) = (2/sqrt(3)) * cos(Pi/18) (A199589). %F A016051 Product_{n>=1} (1 + (-1)^n/a(n)) = (2/sqrt(3)) * sin(2*Pi/9). (End) %t A016051 Select[Range[240], MatchQ[Mod[#, 9], 3|6]&] (* _Jean-François Alcover_, Sep 17 2013 *) %t A016051 LinearRecurrence[{1,1,-1},{3,6,12},60] (* or *) #+{3,6}&/@(9*Range[0,30])//Flatten (* _Harvey P. Dale_, Oct 04 2021 *) %Y A016051 Cf. A001651, A199589. %Y A016051 Subsequence of A145204. - _Reinhard Zumkeller_, Oct 04 2008 %K A016051 nonn,easy %O A016051 1,1 %A A016051 _Robert G. Wilson v_