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.

A111650 2n appears n times (n>0).

Original entry on oeis.org

2, 4, 4, 6, 6, 6, 8, 8, 8, 8, 10, 10, 10, 10, 10, 12, 12, 12, 12, 12, 12, 14, 14, 14, 14, 14, 14, 14, 16, 16, 16, 16, 16, 16, 16, 16, 18, 18, 18, 18, 18, 18, 18, 18, 18, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 24, 24, 24, 24, 24, 24, 24
Offset: 1

Views

Author

Jonathan Vos Post, Aug 12 2005

Keywords

Comments

Seen as a triangle read by rows: T(n,k) = 2*n, 1<=k<=n. - Reinhard Zumkeller, Mar 18 2011

Crossrefs

Programs

  • Haskell
    a111650 n k = a111650_tabl !! (n-1) !! (k-1)
    a111650_row n = a111650_tabl !! (n-1)
    a111650_tabl = iterate (\xs@(x:_) -> map (+ 2) (x:xs)) [2]
    a111650_list = concat a111650_tabl
    -- Reinhard Zumkeller, Nov 14 2015, Mar 18 2011
    
  • Mathematica
    Table[Table[2n,n],{n,12}]//Flatten (* Harvey P. Dale, Apr 21 2018 *)
  • Python
    from math import isqrt
    def A111650(n): return isqrt(n<<3)+1&-2 # Chai Wah Wu, Jun 06 2025

Formula

a(n) = 2*A002024(n). - Chai Wah Wu, Jun 06 2025

A111651 n appears 3n times.

Original entry on oeis.org

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

Views

Author

Jonathan Vos Post, Aug 12 2005

Keywords

Comments

Ramanujan theta functions: f(q) := Prod_{k>=1} (1-(-q)^k) (see A121373), phi(q) := theta_3(q) := Sum_{k=-oo..oo} q^(k^2) (A000122), psi(q) := Sum_{k=0..oo} q^(k*(k+1)/2) (A010054), chi(q) := Prod_{k>=0} (1+q^(2k+1)) (A000700).

Crossrefs

Programs

  • Mathematica
    Table[PadRight[{},3n,n],{n,10}]//Flatten (* Harvey P. Dale, Sep 15 2021 *)
  • PARI
    {a(n)=if(n<1, 0, polcoeff( x/(1-x)*prod(k=1, n\3, (1-x^(3*k))^(-1)^k, 1+O(x^n)), n))} /* Michael Somos, Aug 31 2006 */
    
  • PARI
    a(n) = sqrtint(24*n) \/ 6; \\ Kevin Ryde, Aug 31 2024
    
  • Python
    from math import isqrt
    def A111651(n): return isqrt((n<<3)//3)+1>>1 # Chai Wah Wu, Oct 05 2024

Formula

Expansion of (q/(1-q))psi(q^3) in powers of q where psi() is a Ramanujan theta function. - Michael Somos, Aug 31 2006
G.f.: x/(1-x)*Product_{k>0} (1-x^(3k))^((-1)^k).
a(n) = round(sqrt((2/3)*n)) = A002024(ceiling(n/3)). - Kevin Ryde, Aug 31 2024
Showing 1-2 of 2 results.