login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A110977 Sequence of denominators associated with the continued fraction based on the sequence d(n)= distance of n from closest prime ( A051699). 2
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
REFERENCES
G. Balzarotti and P. P. Lava, Le sequenze di numeri interi, Hoepli, 2008, p. 110.
LINKS
FORMULA
See program.
EXAMPLE
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 ...
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;
CROSSREFS
Sequence in context: A197956 A054072 A325642 * A295785 A069230 A349348
KEYWORD
frac,nonn
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)