|
|
A047574
|
|
Numbers that are congruent to {5, 6, 7} mod 8.
|
|
2
|
|
|
5, 6, 7, 13, 14, 15, 21, 22, 23, 29, 30, 31, 37, 38, 39, 45, 46, 47, 53, 54, 55, 61, 62, 63, 69, 70, 71, 77, 78, 79, 85, 86, 87, 93, 94, 95, 101, 102, 103, 109, 110, 111, 117, 118, 119, 125, 126, 127, 133, 134, 135, 141, 142, 143, 149, 150, 151, 157, 158, 159
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
a(n) = a(n-1) + a(n-3) - a(n-4) for n>4.
G.f.: x*(x^3 + x^2 + x + 5)/(x^4 - x^3 - x + 1). (End)
a(n) = (8*n-10*sin(2*Pi*(n+1)/3)/sqrt(3)+2)/3. - Ilya Gutkovskiy, May 30 2016
|
|
MAPLE
|
|
|
MATHEMATICA
|
Select[Range[200], MemberQ[{5, 6, 7}, Mod[#, 8]] &] (* Vincenzo Librandi, May 30 2016 *)
LinearRecurrence[{1, 0, 1, -1}, {5, 6, 7, 13}, 60] (* Harvey P. Dale, Jul 29 2016 *)
|
|
PROG
|
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|