login
Numbers that are congruent to {0, 1, 2, 3, 7} mod 8.
1

%I #15 Mar 07 2020 06:51:04

%S 0,1,2,3,7,8,9,10,11,15,16,17,18,19,23,24,25,26,27,31,32,33,34,35,39,

%T 40,41,42,43,47,48,49,50,51,55,56,57,58,59,63,64,65,66,67,71,72,73,74,

%U 75,79,80,81,82,83,87,88,89

%N Numbers that are congruent to {0, 1, 2, 3, 7} mod 8.

%H G. C. Greubel, <a href="/A047534/b047534.txt">Table of n, a(n) for n = 1..1000</a>

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

%F From _Chai Wah Wu_, May 30 2016: (Start)

%F a(n) = a(n-1) + a(n-5) - a(n-6), for n > 6.

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

%t LinearRecurrence[{1, 0, 0, 0, 1, -1}, {0, 1, 2, 3, 7, 8}, 50] (* _G. C. Greubel_, May 30 2016 *)

%K nonn,easy

%O 1,3

%A _N. J. A. Sloane_