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-3 of 3 results.

A160479 The ZL(n) sequence of the Zeta and Lambda triangles A160474 and A160487.

Original entry on oeis.org

10, 21, 2, 11, 13, 1, 34, 57, 5, 23, 1, 1, 29, 31, 2, 1, 37, 1, 41, 301, 1, 47, 1, 1, 53, 3, 1, 59, 61, 1, 2, 67, 1, 71, 73, 1, 1, 79, 1, 83, 1, 1, 89, 1, 1, 1, 97, 1, 505, 103, 1, 107, 109, 11, 113, 1, 1, 1, 1, 1, 1, 127, 2, 131
Offset: 3

Views

Author

Johannes W. Meijer, May 24 2009

Keywords

Comments

The rather strange ZL(n) sequence rules both the Zeta and Lambda triangles.
The Zeta triangle led to the first and the Lambda triangle to the second Maple algorithm.
The first ZL(n) formula is a conjecture. This formula links the ZL(n) to the prime numbers A000040; see A217983, A128060, A130290 and the third Maple program.

Crossrefs

Cf. A160474 and A160487.
The cnf1(n, k) are the central factorial numbers A008955.
The cnf2(n, k) are the central factorial numbers A008956.

Programs

  • Maple
    nmax := 65; for n from 0 to nmax do cfn1(n, 0):=1: cfn1(n, n):=(n!)^2 end do: for n from 1 to nmax do for k from 1 to n-1 do cfn1(n, k) := cfn1(n-1, k-1)*n^2 + cfn1(n-1, k) end do: end do: Omega(0) := 1: for n from 1 to nmax do Omega(n) := (sum((-1)^(k1+n+1)*(bernoulli(2*k1)/(2*k1))*cfn1(n-1, n-k1), k1=1..n))/(2*n-1)! end do: for n from 1 to nmax do d(n) := 2^(2*n-1)*Omega(n) end do: for n from 1 to nmax do b(n) := 4^(-n)*(2*n+1)*n*denom(Omega(n)) end do: c(1) := b(1): for n from 1 to nmax-1 do c(n+1) := lcm(c(n)*(n+1)*(2*n+3)/2, b(n+1)) end do: for n from 1 to nmax do cm(n) := c(n)*(1/6)* 4^n/(2*n+1)! end do: for n from 3 to nmax+1 do ZL(n):=cm(n-1)/cm(n-2) end do: seq(ZL(n), n=3..nmax+1);
    # End program 1 (program edited by Johannes W. Meijer, Oct 25 2012)
    nmax1 := nmax; for n from 0 to nmax1 do cfn2(n, 0) :=1: cfn2(n, n) := (doublefactorial(2*n-1))^2 od: for n from 1 to nmax1 do for k from 1 to n-1 do cfn2(n, k) := (2*n-1)^2*cfn2(n-1, k-1) + cfn2(n-1, k) od: od: for n from 1 to nmax1 do Delta(n-1) := sum((1-2^(2*k1-1))* (-1)^(n+1)*(-bernoulli(2*k1)/(2*k1))*(-1)^(k1+n)*cfn2(n-1,n-k1), k1=1..n) /(2*4^(n-1)*(2*n-1)!) end do: for n from 1 to nmax1 do b(n) := (2*n)*(2*n-1)*denom(Delta(n-1))/ (2^(2*n)*(2*n-1)) end do: c(1) := b(1): for n from 1 to nmax1-1 do c(n+1) := lcm(c(n)*(2*n+2)* (2*n+1), b(n+1)) end do: for n from 1 to nmax1 do cm(n) := c(n)/(6*(2*n)!) end do: for n from 3 to nmax1+1 do ZL(n) := cm(n-1)/cm(n-2) end do: seq(ZL(n), n=3..nmax1+1);
    # End program 2 (program edited by Johannes W. Meijer, Sep 20 2012)
    nmax2 := nmax: A000040 := proc(n): ithprime(n) end: A130290 := proc(n): if n =1 then 1 else (A000040(n)-1)/2 fi: end: A128060 := proc(n) local n1: n1:=2*n-1: if type(n1, prime) then A128060(n) := 1 else A128060(n) := n1 fi: end: for n from 1 to nmax2 do A217983(n) := 1 od: for n from 1 to nmax2 do for n1 from 1 to floor(log[A000040(n)](nmax2)) do A217983(A130290(n) * A000040(n)^n1) := A000040(n) od: od: ZL := proc(n): (2*n-1)*(A217983(n-1)/A128060(n)) end: seq(ZL(n), n=3..nmax2+1);
    # End program 3 (program added by Johannes W. Meijer, Oct 25 2012)

Formula

ZL(n) = (2*n-1) * (A217983(n-1)/A128060(n)) for n >= 3.
ZL(n) = ZETA(n, m)/(ZETA(n-1, m-1) - (n-1)^2 * ZETA(n-1, m)), see A160474.
ZL(n) = LAMBDA(n, m)/(LAMBDA(n-1, m-1) - (2*n-3)^2 * LAMBDA(n-1, m)), see A160487.
ZL(n) = A160476(n)/A160476(n-1).

Extensions

Comments, formulas and third Maple program added by Johannes W. Meijer, Oct 25 2012

A217983 If n = floor(p/2) * p^e, for some (by necessity unique) prime p and exponent e > 0, then a(n) = p, otherwise a(n) = 1.

Original entry on oeis.org

1, 2, 3, 2, 1, 1, 1, 2, 3, 5, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 1

Views

Author

Johannes W. Meijer, Oct 25 2012

Keywords

Comments

a(A130290(n) * A000040(n)^n1) = A000040(n), n >= 1 and n1 >= 1, and a(n) = 1 elsewhere. - The original name of the sequence.
The a(n) are related to the prime numbers A000040 and the number of nonzero quadratic residues modulo the n-th prime A130290, see the first formula and the Maple program.
This sequence resembles the exponential of the von Mangoldt function A014963; for the latter sequence a(A000040(n)^n1) = A000040(n), n >= 1 and n1 >= 1, and a(n) = 1 elsewhere.
Positions of the first occurrence of each successive noncomposite number (and also the records) is given by the union of {2} and A008837. - Antti Karttunen, Jan 17 2025

Crossrefs

Cf. A000079, A000244 (after their initial 1's, the positions of 2's and 3's respectively), A020699 (positions of 5's from its third term 10 onward), A169634 (positions of 7's from the second term onward), A379956 (positions of terms > 1).

Programs

  • Maple
    nmax := 78: A000040 := proc(n): ithprime(n) end: A130290 := proc(n): if n =1 then 1 else (A000040(n)-1)/2 fi: end: for n from 1 to nmax do A217983(n) := 1 od: for n from 1 to nmax do for n1 from 1 to floor(log[A000040(n)](nmax)) do A217983(A130290(n) * A000040(n)^n1) := A000040(n) od: od: seq(A217983(n), n=1..nmax);
  • PARI
    A217983(n) = { my(f=factor(n)); for(i=1,#f~,if((n/(f[i,1]^f[i,2])) == (f[i,1]\2), return(f[i,1]))); (1); }; \\ Antti Karttunen, Jan 16 2025

Formula

a(A130290(n) * A000040(n)^n1) = A000040(n), n >= 1 and n1 >= 1, and a(n)= 1 elsewhere.
a(n) = (A160479(n+1) * A128060(n+1))/(2*n+1) for n >= 2.

Extensions

Definition simplified, original definition moved to comments; more terms added by Antti Karttunen, Jan 16 2025

A273878 Numerator of (2*(n+1)!/(n+2)).

Original entry on oeis.org

1, 4, 3, 48, 40, 1440, 1260, 8960, 72576, 7257600, 6652800, 958003200, 889574400, 11623772160, 163459296000, 41845579776000, 39520825344000, 12804747411456000, 12164510040883200, 231704953159680000, 4644631106519040000
Offset: 0

Views

Author

Johannes W. Meijer, Jun 08 2016

Keywords

Comments

The moments, i.e. E(X^n) = int(x^n * p(x), x = 0..infinity) for n > 0, of the probability density function p(x) = 2*x*E(x, 1, 1), see A163931, lead to this sequence.

Examples

			The first few moments of p(x) are: 1, 4/3, 3, 48/5, 40, 1440/7, … .
		

Crossrefs

Programs

  • Maple
    a := proc(n): numer(2*(n+1)!/(n+2)) end: seq(a(n), n=0..20);
  • PARI
    a(n) = numerator(2*(n+1)!/(n+2)) \\ Felix Fröhlich, Jun 09 2016

Formula

a(n) = numer(2*(n+1)!/(n+2))
a(n) = (n+1) * A090586(n+1)
a(2*n) = A110468(n) and a(2*n+1) = (2*n)!*A085250(n+1)/A128060(n+2).
Showing 1-3 of 3 results.