|
|
A047543
|
|
Numbers that are congruent to {3, 4, 7} mod 8.
|
|
1
|
|
|
3, 4, 7, 11, 12, 15, 19, 20, 23, 27, 28, 31, 35, 36, 39, 43, 44, 47, 51, 52, 55, 59, 60, 63, 67, 68, 71, 75, 76, 79, 83, 84, 87, 91, 92, 95, 99, 100, 103, 107, 108, 111, 115, 116, 119, 123, 124, 127, 131, 132, 135, 139, 140, 143, 147, 148, 151, 155, 156, 159
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(3+x+3*x^2+x^3)/((x-1)^2*(1+x+x^2)).
a(n) = a(n-1) + a(n-3) - a(n-4) for n>4.
a(n) = (24*n-6-3*cos(2*n*Pi/3)+5*sqrt(3)*sin(2*n*Pi/3))/9.
a(3k) = 8k-1, a(3k-1) = 8k-4, a(3k-2) = 8k-5. (End)
|
|
MAPLE
|
|
|
MATHEMATICA
|
Select[Range[0, 150], MemberQ[{3, 4, 7}, Mod[#, 8]] &] (* Wesley Ivan Hurt, Jun 09 2016 *)
|
|
PROG
|
(Magma) [n : n in [0..150] | n mod 8 in [3, 4, 7]]; // Wesley Ivan Hurt, Jun 09 2016
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|