Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A118828
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A118828 Numerators of the convergents of the 2-adic continued fraction of zero given by A118827. +0
4
1, -1, 0, -1, -1, 1, 0, 1, 1, -1, 0, -1, -1, 1, 0, 1, 1, -1, 0, -1, -1, 1, 0, 1, 1, -1, 0, -1, -1, 1, 0, 1, 1, -1, 0, -1, -1, 1, 0, 1, 1, -1, 0, -1, -1, 1, 0, 1, 1, -1, 0, -1, -1, 1, 0, 1, 1, -1, 0, -1, -1, 1, 0, 1, 1, -1, 0, -1, -1, 1, 0, 1, 1, -1, 0, -1, -1, 1, 0, 1, 1, -1, 0, -1, -1, 1, 0, 1, 1, -1, 0, -1, -1, 1, 0, 1, 1, -1, 0, -1, -1, 1, 0, 1, 1, -1, 0, -1 (list; graph; listen)
OFFSET

1,1

FORMULA

Period 8 sequence: [1,-1,0,-1,-1,1,0,1]. G.f.: (1-x-x^3)/(1+x^4).

a(n)=1/8*{-[(n+1) mod 8]+[(n+2) mod 8]-2*[(n+3) mod 8]+[(n+5) mod 8]-[(n+6) mod 8]+2*[(n+7) mod 8]} with n>=0 - Paolo P. Lava (ppl(AT)spl.at), Nov 27 2006

EXAMPLE

For n>=1, convergents A118828(k)/A118829(k) are:

at k = 4*n: -1/(2*A080277(n));

at k = 4*n+1: -1/(2*A080277(n)-1);

at k = 4*n+2: -1/(2*A080277(n)-2);

at k = 4*n-1: 0/(-1)^n.

Convergents begin:

1/1, -1/-2, 0/-1, -1/2, -1/1, 1/0, 0/1, 1/-8,

1/-7, -1/6, 0/-1, -1/10, -1/9, 1/-8, 0/1, 1/-24,

1/-23, -1/22, 0/-1, -1/26, -1/25, 1/-24, 0/1, 1/-32,

1/-31, -1/30, 0/-1, -1/34, -1/33, 1/-32, 0/1, 1/-64, ...

PROGRAM

(PARI) {a(n)=local(p=+1, q=-2, v=vector(n, i, if(i%2==1, p, q*2^valuation(i/2, 2)))); contfracpnqn(v)[1, 1]}

CROSSREFS

Cf. A118827 (partial quotients), A118829 (denominators).

Sequence in context: A085369 A046980 A118831 this_sequence A071034 A105234 A005713

Adjacent sequences: A118825 A118826 A118827 this_sequence A118829 A118830 A118831

KEYWORD

frac,sign

AUTHOR

Paul D. Hanna (pauldhanna(AT)juno.com), May 01 2006

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 18 20:14 EST 2008. Contains 147244 sequences.


AT&T Labs Research