Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A089263
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A089263 First differences of A023416. +0
1
0, 0, 1, -1, 2, -1, 0, -1, 3, -1, 0, -1, 1, -1, 0, -1, 4, -1, 0, -1, 1, -1, 0, -1, 2, -1, 0, -1, 1, -1, 0, -1, 5, -1, 0, -1, 1, -1, 0, -1, 2, -1, 0, -1, 1, -1, 0, -1, 3, -1, 0, -1, 1, -1, 0, -1, 2, -1, 0, -1, 1, -1, 0, -1, 6, -1, 0, -1, 1, -1, 0, -1, 2, -1, 0, -1, 1, -1 (list; graph; listen)
OFFSET

0,5

FORMULA

a(0)=0, a(2n) = a(n) + 1, a(2n+1) = -1 + [n==0].

a(n) = A007814(n) + A036987(n-1) - 1.

G.f.: sum(k>=0, t^2/(1+t), t=x^2^k).

PROGRAM

(PARI) a(n)=valuation(n, 2)+(2^valuation(n, 2)==n)-1

(PARI) a(n)=if(n<1, 0, if(n%2==0, a(n/2)+1, -1+(((n-1)/2)==0)))

CROSSREFS

Cf. A088705.

Sequence in context: A052249 A030528 A077227 this_sequence A156135 A047265 A100995

Adjacent sequences: A089260 A089261 A089262 this_sequence A089264 A089265 A089266

KEYWORD

sign,easy

AUTHOR

Ralf Stephan (ralf(AT)ark.in-berlin.de), Oct 30 2003

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 November 27 22:38 EST 2009. Contains 167602 sequences.


AT&T Labs Research