Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A152722
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A152722 A prime based vector recursion: a(n)={Prime[n+2],-Prime[n+2]+1,...,-1,-1}. +0
1
-1, 1, -1, 7, -6, -1, 11, -10, -6, -1, 13, -12, -10, -6, -1, 17, -16, -12, -10, -6, -1, 19, -18, -16, -12, -10, -6, -1, 23, -22, -18, -16, -12, -10, -6, -1, 29, -28, -22, -18, -16, -12, -10, -6, -1, 31, -30, -28, -22, -18, -16, -12, -10, -6, -1, 37, -36, -30, -28, -22 (list; graph; listen)
OFFSET

0,4

COMMENT

Row sums are:

{-1, 0, 0, -6, -16, -28, -44, -62, -84, -112, -142,...}

FORMULA

a(n)={Prime[n+2],-Prime[n+2]+1,...,-1,-1}.

EXAMPLE

{-1},

{1, -1},

{7, -6, -1},

{11, -10, -6, -1},

{13, -12, -10, -6, -1},

{17, -16, -12, -10, -6, -1},

{19, -18, -16, -12, -10, -6, -1},

{23, -22, -18, -16, -12, -10, -6, -1},

{29, -28, -22, -18, -16, -12, -10, -6, -1},

{31, -30, -28, -22, -18, -16, -12, -10, -6, -1},

{37, -36, -30, -28, -22, -18, -16, -12, -10, -6, -1}

MATHEMATICA

b[0] = {-1}; b[1] = {1, -1};

b[n_] := b[n] = Join[{Prime[n + 2 ]}, {-Prime[n + 2] + 1}, Table[b[n - 1][[i]], {i, 2, Length[b[n - 1]]}]];

Table[b[n], {n, 0, 10}]; Flatten[%]

CROSSREFS

A152568, A027293

Sequence in context: A112252 A118321 A152755 this_sequence A100082 A152861 A138096

Adjacent sequences: A152719 A152720 A152721 this_sequence A152723 A152724 A152725

KEYWORD

sign

AUTHOR

Roger L. Bagula and Alexander R. Povolotsky (rlbagulatftn(AT)yahoo.com), Dec 11 2008

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 10 12:37 EST 2009. Contains 170569 sequences.


AT&T Labs Research