cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A110917 Conversion to a regular-simple continued-fraction approximation of the limit value (C0=2.7745963816360040537087...) of the continued fraction (numerator = A110976 and denominator = A110977) based on the sequence of the distances of n from closest primes (A051699).

Original entry on oeis.org

2, 1, 3, 2, 3, 2, 3, 2, 2, 2, 3, 2, 3, 2, 3, 2, 2, 2, 3, 2, 2, 2, 3, 2, 2, 2, 3, 2, 3, 2, 3, 2, 2, 2, 3, 2, 3, 2, 2, 2, 2, 2, 3, 2, 2, 2, 3, 4, 3, 2, 2, 2, 3, 2, 3, 2, 2, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 2, 2, 2, 2, 3, 2, 3, 2, 3, 4, 5, 4, 3, 2, 3, 2, 3, 2, 2, 2, 3, 2, 2, 2, 2, 2, 3, 2, 2, 2, 3, 2, 3, 2, 3, 4, 5
Offset: 1

Views

Author

Keywords

Comments

With the exception of n = 3, it should be abs(a(n)-a(n-1)) = < 1 for all n. Hill-mountain-like plot, with land = 2.

Examples

			C0 = a(1) +1/( a(2) +1/( a(3) +1/( a(4) +1/( a(5) +...=2+1/(1+1/(3+1/(2+1/(3+...
		

References

  • G. Balzarotti and P. P. Lava, Le sequenze di numeri interi, Hoepli, 2008, p. 110.

Crossrefs

Programs

  • Maple
    cd:=proc(N) # d[n]distance of n from closest prime A[0]:=d[0]; A[1]:=d[1]*A[0]+1; B[0]:=1; B[1]:=d[1]*B[0]; for n from 2 by 1 to N do A[n]:=d[n]*A[n-1]+A[n-2]; B[n]:=d[n]*B[n-1]+B[n-2]; od; R:=A[N]/B[N]; convert(R,confrac); end:

Formula

see program

A110977 Sequence of denominators associated with the continued fraction based on the sequence d(n)= distance of n from closest prime ( A051699).

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 3, 1, 4, 9, 13, 9, 22, 9, 31, 71, 102, 71, 173, 71, 244, 559, 803, 559, 1362, 3283, 11211, 25705, 36916, 25705, 62621, 25705, 88326, 202357, 695397, 1593151, 2288548, 1593151, 3881699, 9356549, 13238248, 9356549, 22594797, 9356549
Offset: 0

Views

Author

Keywords

Examples

			if n = 2, B(n) = B(2) = 1 because B(0) = 1, B(1) = 1 * B(0) = 1 as the distances of n from closest prime are 2, 1, 0, 0, 1 ...
		

References

  • G. Balzarotti and P. P. Lava, Le sequenze di numeri interi, Hoepli, 2008, p. 110.

Crossrefs

Programs

  • Maple
    A[0]:=d[0]; A[1]:=d[1]*A[0]+1; B[0]:=1; B[1]:=d[1]*B[0]; for n from 2 by 1 to N do A[n]:=d[n]*A[n-1]+A[n-2]; B[n]:=d[n]*B[n-1]+B[n-2]; od;

Formula

See program.
Showing 1-2 of 2 results.