|
| |
|
|
A047470
|
|
Numbers that are congruent to {0, 3} mod 8.
|
|
1
| |
|
|
0, 3, 8, 11, 16, 19, 24, 27, 32, 35, 40, 43, 48, 51, 56, 59, 64, 67, 72, 75, 80, 83, 88, 91, 96, 99, 104, 107, 112, 115, 120, 123, 128, 131, 136, 139, 144, 147, 152, 155, 160, 163, 168, 171, 176, 179, 184, 187, 192, 195, 200, 203, 208, 211, 216, 219, 224, 227, 232
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,2
|
|
|
COMMENTS
| Maximum number of squares attacked by a queen on an n X n chessboard - Stewart Gordon (smjg(AT)iname.com), Mar 23 2001
Number of squares attacked by a queen on a toroidal chessboard - Diego Torres (torresvillarroel(AT)hotmail.com), May 19 2001
List of squared distances between points of diamond 'lattice' with minimal distance sqrt(3) - Arnold Neumaier (Arnold.Neumaier(AT)univie.ac.at), Aug 01 2003
|
|
|
LINKS
| Index to sequences with linear recurrences with constant coefficients, signature (1,1,-1).
|
|
|
FORMULA
| a(n) = a(n-1) + 4 + (-1)^n = a(n-1) + a(n-2) - a(n-3) = A042948(n) + A005843(n); g.f.: (3x+5*x^2)/((1-x)*(1-x^2)).
a(n)=8*n-a(n-1)-13 (with a(1)=0) [From Vincenzo Librandi (vincenzo.librandi(AT)tin.it), Aug 06 2010]
a(n+1)=Sum_k>=0 {A030308(n,k)*A171497(k)}. - From DELEHAM Philippe, Oct 17 2011.
|
|
|
MAPLE
| a:=n->add(4+(-1)^j, j=1..n):seq(a(n), n=0..64); # [From Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Dec 13 2008]
|
|
|
MATHEMATICA
| With[{c=8Range[0, 30]}, Sort[Join[c, c+3]]] (* From Harvey P. Dale, Oct 11 2011 *)
|
|
|
PROG
| (PARI) forstep(n=0, 200, [3, 5], print1(n", ")) \\ Charles R Greathouse IV, Oct 17 2011
|
|
|
CROSSREFS
| Cf. A042948.
Sequence in context: A111132 A188473 A003234 * A184401 A190251 A003623
Adjacent sequences: A047467 A047468 A047469 * A047471 A047472 A047473
|
|
|
KEYWORD
| nonn,easy
|
|
|
AUTHOR
| N. J. A. Sloane (njas(AT)research.att.com).
|
|
|
EXTENSIONS
| More terms from Vincenzo Librandi (vincenzo.librandi(AT)tin.it), Aug 06 2010
|
| |
|
|