|
|
A047287
|
|
Numbers that are congruent to {0, 1, 2, 3, 6} mod 7.
|
|
1
|
|
|
0, 1, 2, 3, 6, 7, 8, 9, 10, 13, 14, 15, 16, 17, 20, 21, 22, 23, 24, 27, 28, 29, 30, 31, 34, 35, 36, 37, 38, 41, 42, 43, 44, 45, 48, 49, 50, 51, 52, 55, 56, 57, 58, 59, 62, 63, 64, 65, 66, 69, 70, 71, 72, 73, 76, 77, 78
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x^2*(1+x+x^2+3*x^3+x^4)/((1-x)^2*(1+x+x^2+x^3+x^4)). [Colin Barker, May 14 2012]
|
|
MATHEMATICA
|
Select[Range[0, 400], MemberQ[{0, 1, 2, 3, 6}, Mod[#, 7]]&] (* Vincenzo Librandi, May 15 2012 *)
|
|
PROG
|
(Magma) I:=[0, 1, 2, 3, 6, 7]; [n le 6 select I[n] else Self(n-1)+Self(n-5)-Self(n-6): n in [1..70]]; // Vincenzo Librandi, May 15 2012
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|