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.

A024217 a(n) = ( Product {k = 1..n} 3*k - 2 ) * ( Sum {k = 1..n} (-1)^(k+1)/(3*k - 2) ).

Original entry on oeis.org

1, 3, 25, 222, 3166, 47016, 951544, 19827408, 520029520, 13952218560, 449559799360, 14756761434240, 563961412362880, 21893890640563200, 968019931702297600, 43385863589508249600, 2178487766250586470400, 110704921777161066700800, 6222745685273069016064000
Offset: 1

Views

Author

Keywords

Comments

Original name was: s(1)*s(2)*...*s(n)(1/s(1) - 1/s(2) + ... + c/s(n)), where c=(-1)^(n+1) and s(k) = 3k-2 for k = 1,2,3,...

Crossrefs

Programs

  • Magma
    I:=[1,3]; [n le 2 select I[n] else 3*Self(n-1)+(3*n-5)^2*Self(n-2): n in [1..20]]; // Vincenzo Librandi, Feb 21 2015
  • Maple
    a[1] := 1: a[2] := 3: for n from 3 to 20 do a[n] := 3*a[n-1]+(3*n-5)^2*a[n-2] end do: seq(a[n], n = 1 .. 20); # Peter Bala, Feb 20 2015
  • Mathematica
    Table[Product[3*k-2,{k,1,n}] * Sum[(-1)^(k+1)/(3*k-2),{k,1,n}],{n,1,20}] (* Vaclav Kotesovec, Feb 21 2015 *)

Formula

From Peter Bala, Feb 20 2015: (Start)
a(n) = A007559(n) * Sum {k = 1..n} (-1)^(k+1)/(3*k - 2).
Recurrence: a(n+1) = 3*a(n) + (3*n - 2)^2*a(n-1) with a(1) = 1 and a(2) = 3.
The triple factorial numbers A007559 also satisfy this second-order recurrence equation. This leads to the continued fraction representation a(n)/A007559(n) = 1/(1 + 1^2/(3 + 4^2/(3 + 7^2/(3 + ... + (3*n - 2)^2/(3 ))))).
Taking the limit as n -> infinity gives the generalized continued fraction: Sum {k >= 1} (-1)^(k+1)/(3*k - 2) = 1/(1 + 1^2/(3 + 4^2/(3 + 7^2/(3 + 10^2/(3 + ... ))))) due to Euler.
The alternating sum has the value 1/3*( log(2) + Pi/sqrt(3) ) = A113476. Cf. A024396. (End)
a(n) ~ sqrt(2*Pi) * (sqrt(3)*Pi + 3*log(2)) * 3^(n-2) * n^(n-1/6) / (GAMMA(1/3) * exp(n)). - Vaclav Kotesovec, Feb 21 2015

Extensions

New name from Peter Bala, Feb 20 2015
a(18)-a(19) from Vincenzo Librandi, Feb 21 2015

A024384 a(n) = s(1)*s(2)*...*s(n+1)*(1/s(2) - 1/s(3) + ... + c/s(n+1)), where c = (-1)^(n+1) and s(k) = 4k-3 for k = 1,2,3,...

Original entry on oeis.org

1, 4, 97, 1064, 32289, 598380, 22574145, 593534160, 26957380545, 920377787220, 48996867845025, 2059752490500600, 125880489657907425, 6289366704447815100, 434143177716332484225, 25139306218115649924000, 1934812150723967345546625, 127427485507344478670350500
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    Table[Product[4*k - 3, {k, 1, n+1}] * Sum[(-1)^k/(4*k - 3), {k, 2, n+1}], {n, 1, 20}] (* Vaclav Kotesovec, Jan 02 2020 *)
  • PARI
    a(n)={my(s=vector(n+1, k, 4*k-3)); vecprod(s)*sum(k=2, #s, (-1)^k/s[k])} \\ Andrew Howroyd, Jan 01 2020

Formula

a(n) ~ sqrt(Pi) * (8 - sqrt(2)*Pi - 2^(3/2) * log(1 + sqrt(2))) * 2^(2*n - 1/2) * n^(n + 3/4) / (Gamma(1/4) * exp(n)). - Vaclav Kotesovec, Jan 02 2020

Extensions

Extra initial term removed and a(11) and beyond added by Andrew Howroyd, Jan 01 2020
Showing 1-2 of 2 results.