OFFSET
0,1
COMMENTS
Also numbers m such that floor(1+(m/7)) mod 7 = 0.
Partial sums of the sequence 42,1,1,1,1,1,1,43,1,1,1,1,1,1,43,... which has period 7.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,1,-1).
FORMULA
a(n) = 7*n + 42 - 6*(n mod 7).
G.f.: (42+x+x^2+x^3+x^4+x^5+x^6+x^7)/((1-x^7)(1-x)).
G.f.: (42-41x-x^8) /((1-x^7)(1-x)^2).
MATHEMATICA
Select[Range[390], Mod[Binomial[#+7, #], 7]==0&] (* or *) LinearRecurrence[{1, 0, 0, 0, 0, 0, 1, -1}, {42, 43, 44, 45, 46, 47, 48, 91}, 55] (* James C. McMahon, Mar 30 2025 *)
PROG
(Magma) [7*n + 42 - 6*(n mod 7) : n in [0..80]]; // Wesley Ivan Hurt, Feb 13 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Hieronymus Fischer, Oct 20 2007
STATUS
approved
