login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A156859 The main column of a version of the "Ulam spiral". 3
0, 3, 7, 14, 22, 33, 45, 60, 76, 95, 115, 138, 162, 189, 217, 248, 280, 315, 351, 390, 430, 473, 517, 564, 612, 663, 715, 770, 826, 885, 945, 1008, 1072, 1139, 1207 (list; graph; refs; listen; history; internal format)
OFFSET

0,2

COMMENTS

It is easy to see that the only two primes in the sequence are 3, 7. Therefore the primes of the version of "Ulam spiral" are divided into four parts (see also A035608): north-east (NE), north-west (NW), south-west (SW), and south-east (SE).

a(n) = [b(n) U c(n)], being b(n)=4*n^2+3*n and c(n)=4*n^2+7*n+3 with n>=0 [From Paolo P. Lava (paoloplava(AT)gmail.com), Mar 05 2009]

LINKS

E. Apricena, A version of "Ulam Spiral" divided into four parts.

FORMULA

a(n)=n^2+n+[(n+1)/2]

G.f.: x(3+x)/((1+x)(1-x)^3). a(n)=2*a(n-1)-2*a(n-3)+a(n-4). - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Feb 20 2009

a(n)=-n-1+Sum_{j=0..n}Sum_{k=0..j}[2+(-1)^k] [From Paolo P. Lava (paoloplava(AT)gmail.com), Mar 05 2009]

MAPLE

P:=proc(i) local a, j, k, n; for n from 0 by 1 to i do a:=sum(sum(2-(-1)^k, k=0..j), j=0..n)-n-1; print(a); od; end: P(100); [From Paolo P. Lava (paoloplava(AT)gmail.com), Mar 05 2009]

CROSSREFS

Cf. A035608.

A115258 [From Paolo P. Lava (paoloplava(AT)gmail.com), Mar 05 2009]

Sequence in context: A033808 A161210 A154772 * A173209 A146931 A176675

Adjacent sequences:  A156856 A156857 A156858 * A156860 A156861 A156862

KEYWORD

nonn

AUTHOR

Emilio Apricena (emilioapricena(AT)yahoo.it), Feb 17 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 08:13 EST 2012. Contains 205893 sequences.