OFFSET
0,2
COMMENTS
First quadrisection of A176126(n). Take clockwise (square) spiral from A023443(n)=n-1: a(n) is on the negative x-axis. Fourth quadrisection (-1-n+4*n^2) is on the negative y-axis.
Conjecture: the 4 quadrisections of (the family) A064038, A160050, A176126, A178242 (see A181407) come from square spiral.
a(n) mod 9 has period 9: 8,4,8,2,4,5,5,4,2. a(n) mod 10 has period 10: 9,4,7,8,7,4,9,2,3,2. Each polynomial modulo some constant c has a period of length c (and perhaps shorter ones). - Paul Curtz and Bruno Berselli, Feb 05 2011
LINKS
FORMULA
a(n) = A176126(4*n).
a(n) = 4*n^2 + n - 1.
a(n) = a(n-1) - 3 + 8*n.
a(n) = 2*a(n) - a(n-2) + 8.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
G.f.: -(1 - 7*x - 2*x^2)/(1-x)^3. - Bruno Berselli, Feb 05 2011
MATHEMATICA
f[n_]:=-1+n+4*n^2; f[Range[0, 100]] (* Vladimir Joseph Stephan Orlovsky, Feb 19 2011 *)
PROG
(Magma) [-1+n+4*n^2: n in [0..700] ] // Vincenzo Librandi, Feb 01 2011
(PARI) a(n)=-1+n+4*n^2 \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Feb 01 2011
STATUS
approved