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.

A356360 Denominator of the continued fraction 1/(2-3/(3-4/(4-5/(...(n-1)-n/(n+1))))).

Original entry on oeis.org

5, 7, 3, 11, 13, 1, 17, 19, 1, 23, 1, 1, 29, 31, 1, 1, 37, 1, 41, 43, 1, 47, 1, 1, 53, 1, 1, 59, 61, 1, 1, 67, 1, 71, 73, 1, 1, 79, 1, 83, 1, 1, 89, 1, 1, 1, 97, 1, 101, 103, 1, 107, 109, 1, 113, 1, 1, 1, 1, 1, 1, 127, 1, 131, 1, 1, 137, 139, 1, 1, 1, 1, 149, 151, 1, 1, 157, 1, 1, 163, 1, 167
Offset: 3

Views

Author

Mohammed Bouras, Oct 15 2022

Keywords

Comments

Conjecture: The sequence contains only 1's and the primes.
Similar continued fraction to A356247.
Same as A128059(n), A145737(n-1) and A097302(n-2) for n > 5.
a(n) = 1 positions appear to correspond to A104275(m), m > 2. Conjecture: all odd primes are seen in order after 11. - Bill McEachen, Aug 05 2024

Crossrefs

Programs

  • Python
    from math import gcd, factorial
    def A356360(n): return (a:=(n<<1)-1)//gcd(a, a*sum(factorial(k) for k in range(n-2))+n*factorial(n-2)>>1) # Chai Wah Wu, Feb 26 2024

Formula

For n >= 3, the formula of the continued fraction is as follows:
(A051403(n-2) + A051403(n-3))/(2n - 1) = 1/(2-3/(3-4/(4-5/(...(n-1)-n/(n+1))))).
a(n) = (2n - 1)/gcd(2n - 1, A051403(n-2) + A051403(n-3)).
From the conjecture: Except for n = 5, a(n)= 2n - 1 if 2n-1 is prime, 1 otherwise.

A097301 Numerators of rationals used in the Euler-Maclaurin type derivation of Stirling's formula for N!.

Original entry on oeis.org

1, -1, 2, -3, 3360, -995040, 39916800, -656924748480, 1214047650816000, -169382556838010880, 15749593891765493760000, -4054844479616799289344000, 34017686450062663131463680000, -11402327189708082115897599590400000, 189528830020089532044244068728832000000
Offset: 0

Views

Author

Wolfdieter Lang, Aug 13 2004

Keywords

Comments

Denominators are given in A097302.
The e.g.f. sum( A(2*n+1)*(x^(2*n+1))/(2*n+1)!,n=0..infinity) appears in the Stirling-formula derivation for N! with x=1/N in the exponent and the formula for A(2*n+1):=a(n)/A097302(n), n>=0, is given below. For Stirling's formula see A001163 and A001164.
The rationals A(2*n+1) = B(n):= (2*n)!*Bernoulli(2*(n+1))/(2*(n+1)) = a(n)/A097304(n) with A(2*n):=0 are the logarithmic transform of the rational sequence {A001163(n)/A001164(n)} (inverse of the sequence transform EXP)

References

  • Julian Havil, Gamma, Exploring Euler's Constant, Princeton University Press, Princeton and Oxford, 2003, p. 87.

Formula

a(n)=numerator(B(n)) with B(n):=Bernoulli(2*n+2)*(2*n)!/(2*n+2) and Bernoulli(n)= A027641(n)/A027642(n).
Showing 1-2 of 2 results.