|
| |
|
|
A118825
|
|
Numerators of the convergents of the 2-adic continued fraction of zero given by A118824.
|
|
3
| |
|
|
-2, -1, 0, -1, 2, 1, 0, 1, -2, -1, 0, -1, 2, 1, 0, 1, -2, -1, 0, -1, 2, 1, 0, 1, -2, -1, 0, -1, 2, 1, 0, 1, -2, -1, 0, -1, 2, 1, 0, 1, -2, -1, 0, -1, 2, 1, 0, 1, -2, -1, 0, -1, 2, 1, 0, 1, -2, -1, 0, -1, 2, 1, 0, 1, -2, -1, 0, -1, 2, 1, 0, 1, -2, -1, 0, -1, 2, 1, 0, 1, -2, -1, 0, -1, 2, 1, 0, 1, -2, -1, 0, -1, 2, 1, 0, 1, -2, -1, 0, -1, 2, 1, 0, 1, -2, -1, 0
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,1
|
|
|
FORMULA
| Period 8 sequence: [ -2,-1,0,-1,2,1,0,1]. G.f.: (-2-x-x^3)/(1+x^4).
a(n)=1/8*{3*[n mod 8]-[(n+1) mod 8]+(n+2) mod 8+(n+3) mod 8-3*[(n+4) mod 8]+(n+5) mod 8-[(n+6) mod 8]-[(n+7) mod 8] - Paolo P. Lava (paoloplava(AT)gmail.com), Oct 20 2006
a(n)=1/8*{3*(n mod 8)-[(n+1) mod 8]+[(n+2) mod 8]+[(n+3) mod 8]-3*[(n+4) mod 8]+[(n+5) mod 8]-[(n+6) mod 8]-[(n+7) mod 8]} with n>=0 - Paolo P. Lava (paoloplava(AT)gmail.com), Nov 27 2006
|
|
|
EXAMPLE
| For n>=1, convergents A118825(k)/A118826(k) are:
at k = 4*n: 1/A080277(n);
at k = 4*n+1: 2/(2*A080277(n)-1);
at k = 4*n+2: 1/(A080277(n)-1);
at k = 4*n-1: 0/(-1)^n.
Convergents begin:
-2/1, -1/1, 0/-1, -1/-1, 2/1, 1/0, 0/1, 1/4,
-2/-7, -1/-3, 0/-1, -1/-5, 2/9, 1/4, 0/1, 1/12,
-2/-23, -1/-11, 0/-1, -1/-13, 2/25, 1/12, 0/1, 1/16,
-2/-31, -1/-15, 0/-1, -1/-17, 2/33, 1/16, 0/1, 1/32, ...
|
|
|
PROG
| (PARI) {a(n)=local(p=-2, q=+1, v=vector(n, i, if(i%2==1, p, q*2^valuation(i/2, 2)))); contfracpnqn(v)[1, 1]}
|
|
|
CROSSREFS
| Cf. A118824 (partial quotients), A118826 (denominators).
Sequence in context: A199339 A098178 A007877 * A118822 A054848 A194525
Adjacent sequences: A118822 A118823 A118824 * A118826 A118827 A118828
|
|
|
KEYWORD
| frac,sign
|
|
|
AUTHOR
| Paul D. Hanna (pauldhanna(AT)juno.com), May 01 2006
|
| |
|
|