|
| |
|
|
A047360
|
|
Numbers that are congruent to {1, 2, 3} mod 7.
|
|
1
| |
|
|
1, 2, 3, 8, 9, 10, 15, 16, 17, 22, 23, 24, 29, 30, 31, 36, 37, 38, 43, 44, 45, 50, 51, 52, 57, 58, 59, 64, 65, 66, 71, 72, 73, 78, 79, 80, 85, 86, 87, 92, 93, 94, 99, 100, 101, 106, 107, 108, 113, 114, 115, 120, 121, 122, 127, 128, 129, 134, 135, 136, 141
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,2
|
|
|
LINKS
| Index to sequences with linear recurrences with constant coefficients, signature (1,0,1,-1).
|
|
|
FORMULA
| a(n)= 7*floor(n/3)+(n mod 3) +1, with offset 0..a(0)=1 [From Gary Detlefs (gdetlefs(AT)aol.com), Mar 09 2010]
G.f. x*(1+x+x^2+4*x^3) / ( (1+x+x^2)*(x-1)^2 ). - R. J. Mathar, Oct 08 2011
a(n) = 4* floor((n-1)/3)+n. [From Gary Detlefs, Dec 22 2011]
|
|
|
MAPLE
| seq(7*floor(n/3)+(n mod 3) +1, n=0..52); [From Gary Detlefs (gdetlefs(AT)aol.com), Mar 09 2010]
|
|
|
MATHEMATICA
| Select[Range[0, 200], Mod[#, 7] == 1 || Mod[#, 7] == 2 || Mod[#, 7] == 3 &] (* From Vladimir Joseph Stephan Orlovsky, Jul 10 2011 *)
|
|
|
CROSSREFS
| Sequence in context: A080288 A169868 A191159 * A004825 A028821 A075190
Adjacent sequences: A047357 A047358 A047359 * A047361 A047362 A047363
|
|
|
KEYWORD
| nonn
|
|
|
AUTHOR
| N. J. A. Sloane (njas(AT)research.att.com).
|
| |
|
|