login
Numbers that are congruent to {0, 1, 3, 5, 6} mod 7.
0

%I #15 Feb 26 2022 15:59:29

%S 0,1,3,5,6,7,8,10,12,13,14,15,17,19,20,21,22,24,26,27,28,29,31,33,34,

%T 35,36,38,40,41,42,43,45,47,48,49,50,52,54,55,56,57,59,61,62,63,64,66,

%U 68,69,70,71,73,75,76,77,78

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

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

%F G.f.: x^2*(1 + 2*x + 2*x^2 + x^3 + x^4) / ( (x^4 + x^3 + x^2 + x + 1)*(x-1)^2 ). - _R. J. Mathar_, Dec 04 2011

%t #+{0,1,3,5,6}&/@(7 Range[0,20])//Flatten (* or *) LinearRecurrence[ {1,0,0,0,1,-1},{0,1,3,5,6,7},100] (* _Harvey P. Dale_, Feb 26 2022 *)

%K nonn

%O 1,3

%A _N. J. A. Sloane_