The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A081345 First row in maze arrangement of natural numbers A081344. 3
1, 4, 5, 16, 17, 36, 37, 64, 65, 100, 101, 144, 145, 196, 197, 256, 257, 324, 325, 400, 401, 484, 485, 576, 577, 676, 677, 784, 785, 900, 901, 1024, 1025, 1156, 1157, 1296, 1297, 1444, 1445, 1600, 1601, 1764, 1765, 1936, 1937, 2116, 2117, 2304, 2305, 2500 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n) = n^2 + n + 1 - n*(-1)^n = n^2 + n + 1 + n*(-1)^(n+1).
a(2*n) = A053755(n), a(2*n+1) = 4 * A004120(n).
G.f.: (5*x^3-x^2+3*x+1)/((1-x)^3*(1+x)^2). [Colin Barker, Sep 03 2012]
MATHEMATICA
CoefficientList[Series[(5 x^3 - x^2 + 3 x + 1) / ((1 - x)^3 (1 + x)^2), {x, 0, 50}], x] (* Vincenzo Librandi, Aug 08 2013 *)
PROG
(Magma) [n^2+n+1-n*(-1)^n: n in [0..50]]; // Vincenzo Librandi, Aug 08 2013
CROSSREFS
Cf. A081346.
Sequence in context: A078713 A175263 A000695 * A137527 A024854 A309759
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Mar 19 2003
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 15 11:51 EDT 2024. Contains 373407 sequences. (Running on oeis4.)