OFFSET
1,2
EXAMPLE
x=1.408494279228906985748474279080697991613998955782051281466263817524862977...
The continued fraction expansion of x = A109168:
[1; 2, 2, 4, 3, 4, 4, 8, 5, 6, 6, 8, 7, 8, 8, 16, ...];
the continued fraction expansion of 2*x = A109170:
[2;1, 4,2, 6,2, 8,4, 10,3, 12,4, 14,4, 16,8, 18,5, ...]
which equals the continued fraction of x interleaved with even numbers.
PROG
(PARI) {PQ(n)=if(n%2==1, (n+1)/2, 2*PQ(n/2))} {CFM=contfracpnqn(vector(500, n, PQ(n))); x=CFM[1, 1]/CFM[2, 1]*1.0}
CROSSREFS
KEYWORD
nonn,cons
AUTHOR
Paul D. Hanna, Jun 21 2005
STATUS
approved