login
a(3*n) = 8*n+2, a(3*n+1) = 2*n+1, a(3*n+2) = 8*n+6.
1

%I #15 Oct 08 2023 04:45:33

%S 2,1,6,10,3,14,18,5,22,26,7,30,34,9,38,42,11,46,50,13,54,58,15,62,66,

%T 17,70,74,19,78,82,21,86,90,23,94,98,25,102,106,27,110,114,29,118,122,

%U 31,126,130,33,134,138,35,142,146,37,150,154,39,158,162,41,166

%N a(3*n) = 8*n+2, a(3*n+1) = 2*n+1, a(3*n+2) = 8*n+6.

%H <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,2,0,0,-1).

%F G.f.: (1+x)*(2-x+7*x^2-x^3+2*x^4)/(1-x^3)^2.

%F Sum_{n>=0} (-1)^(n+1)/a(n) = (2-sqrt(2))*Pi/8. - _Amiram Eldar_, Oct 08 2023

%t Table[Sequence @@ {8*n+2, 2*n+1, 8*n+6}, {n, 0, 20}] (* _Amiram Eldar_, Oct 08 2023 *)

%Y Cf. A005408, A017089, A017137.

%K nonn,easy

%O 0,1

%A _Paul Curtz_, Nov 26 2010