login
Numerator of the ratio of the preceding two terms.
0

%I #4 Oct 01 2013 17:58:01

%S 2,1,1,1,1,2,2,1,1,1,1,2,2,1,1,1,1,2,2,1,1,1,1,2,2,1,1,1,1,2,2,1,1,1,

%T 1,2,2,1,1,1,1,2,2,1,1,1,1,2,2,1,1,1,1,2,2,1,1,1,1,2,2,1,1,1,1,2,2,1,

%U 1,1,1,2,2,1,1,1,1,2,2,1,1,1,1,2,2,1,1,1,1,2,2

%N Numerator of the ratio of the preceding two terms.

%C The actual repeating sequence is 2,1,1/2,1/2,1,2,2,1,1/2,1/2,1,2...

%F Let a(1) = 1, a(2) = 2 then a(n) = a(n-2)/a(n-1) for n = 3, 4, 5... The sequence only posts the numerator of a(n).

%o (PARI) fibdiv(n) = { a = vector(1000); a[1] = 1; a[2] = 2; for(j=3,n, a[j] = a[j-1]/a[j-2]; print1(numerator(a[j])",") ) }

%K nonn,frac

%O 3,1

%A _Cino Hilliard_, Jun 24 2004