Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Revision History for A152833

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
a(0) = -3; a(n) = n-a(n-1).
(history; published version)
#10 by Alois P. Heinz at Sat Jan 09 13:53:07 EST 2021
STATUS

editing

approved

#9 by Alois P. Heinz at Sat Jan 09 13:53:01 EST 2021
NAME

a(0) = -3; a(n) = n-a(n-1).

FORMULA

a(n) = (2n+1-13*(-1)^n)/4. G.f.: -(3-7x+3x^2)/((1+x)(1-x)^2). - _R. J. Mathar, _, Jan 08 2009

EXTENSIONS

Indices added to definition, offset corrected - _by _R. J. Mathar_, Jan 08 2009

STATUS

proposed

editing

#8 by Rok Cestnik at Sat Jan 09 13:46:26 EST 2021
STATUS

editing

proposed

Discussion
Sat Jan 09
13:52
Alois P. Heinz: yes, thanks.
#7 by Rok Cestnik at Sat Jan 09 13:45:43 EST 2021
NAME

a(0)=-3; a(n)=n-a(n-1).

STATUS

approved

editing

Discussion
Sat Jan 09
13:46
Rok Cestnik: A minus was missing in the definition.
#6 by Harvey P. Dale at Mon May 16 15:48:32 EDT 2016
STATUS

editing

approved

#5 by Harvey P. Dale at Mon May 16 15:48:28 EDT 2016
MATHEMATICA

RecurrenceTable[{a[0]==-3, a[n]==n-a[n-1]}, a, {n, 80}] (* Harvey P. Dale, May 16 2016 *)

STATUS

approved

editing

#4 by Russ Cox at Sat Mar 31 12:38:17 EDT 2012
AUTHOR

_Vladimir Joseph Stephan Orlovsky (4vladimir(AT)gmail.com), _, Dec 14 2008

Discussion
Sat Mar 31
12:38
OEIS Server: https://oeis.org/edit/global/876
#3 by Russ Cox at Fri Mar 30 17:39:47 EDT 2012
EXTENSIONS

Indices added to definition, offset corrected - _R. J. Mathar (mathar(AT)strw.leidenuniv.nl), _, Jan 08 2009

Discussion
Fri Mar 30
17:39
OEIS Server: https://oeis.org/edit/global/190
#2 by N. J. A. Sloane at Fri Feb 27 03:00:00 EST 2009
NAME

a(0)=3; a(n)=n-a(n-1).

OFFSET

1,0,1

FORMULA

a(n)=(2n+1-13*(-1)^n)/4. G.f.: -(3-7x+3x^2)/((1+x)(1-x)^2). - R. J. Mathar, Jan 08 2009

CROSSREFS
KEYWORD

nonn,new

sign

EXTENSIONS

Indices added to definition, offset corrected - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jan 08 2009

#1 by N. J. A. Sloane at Fri Jan 09 03:00:00 EST 2009
NAME

a=3;a(n)=n-a.

DATA

-3, 4, -2, 5, -1, 6, 0, 7, 1, 8, 2, 9, 3, 10, 4, 11, 5, 12, 6, 13, 7, 14, 8, 15, 9, 16, 10, 17, 11, 18, 12, 19, 13, 20, 14, 21, 15, 22, 16, 23, 17, 24, 18, 25, 19, 26, 20, 27, 21, 28, 22, 29, 23, 30, 24, 31, 25, 32, 26, 33, 27, 34, 28, 35, 29, 36, 30, 37, 31, 38, 32, 39, 33, 40, 34

OFFSET

1,1

MATHEMATICA

lst={}; a=3; Do[a=n-a; AppendTo[lst, a], {n, 0, 6!}]; lst

CROSSREFS
KEYWORD

nonn,new

AUTHOR

Vladimir Orlovsky (4vladimir(AT)gmail.com), Dec 14 2008

STATUS

approved