login
A047518
Numbers that are congruent to {2, 3, 4, 6, 7} mod 8.
1
2, 3, 4, 6, 7, 10, 11, 12, 14, 15, 18, 19, 20, 22, 23, 26, 27, 28, 30, 31, 34, 35, 36, 38, 39, 42, 43, 44, 46, 47, 50, 51, 52, 54, 55, 58, 59, 60, 62, 63, 66, 67, 68, 70, 71, 74, 75, 76, 78, 79, 82, 83, 84, 86, 87, 90
OFFSET
1,1
FORMULA
From Chai Wah Wu, May 30 2016: (Start)
a(n) = a(n-1) + a(n-5) - a(n-6) for n > 6.
G.f.: x*(x^5 + x^4 + 2*x^3 + x^2 + x + 2)/(x^6 - x^5 - x + 1). (End)
MATHEMATICA
LinearRecurrence[{1, 0, 0, 0, 1, -1}, {2, 3, 4, 6, 7, 10}, 50] (* G. C. Greubel, May 30 2016 *)
CROSSREFS
Sequence in context: A155905 A375928 A287531 * A335031 A179834 A352335
KEYWORD
nonn,easy
STATUS
approved