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.

Previous Showing 41-42 of 42 results.

A369787 Number of different coefficient values in expansion of Product_{k=1..n} (1+x^(k*(k+1)/2)).

Original entry on oeis.org

1, 1, 2, 2, 3, 3, 4, 5, 6, 8, 13, 19, 28, 44, 71, 112, 168, 249, 321, 419, 549, 652, 797, 939, 1104, 1265, 1440, 1638, 1842, 2059, 2295, 2538, 2809, 3087, 3385, 3698, 4032, 4381, 4754, 5143, 5554, 5985, 6437, 6910, 7405, 7922, 8463, 9027, 9615, 10227, 10865, 11528
Offset: 0

Views

Author

Seiichi Manyama, Feb 01 2024

Keywords

Crossrefs

Programs

  • PARI
    a(n) = #Set(Vec(prod(k=1, n, 1+x^(k*(k+1)/2))));
    
  • Python
    from collections import Counter
    def A369787(n):
        c = {0:1}
        for k in range(1,n+1):
            m, d = k*(k+1)>>1, Counter(c)
            for j in c:
                d[j+m] += c[j]
            c = d
        return len(set(c.values()))+int(max(c)+1>len(c)) # Chai Wah Wu, Feb 01 2024

A303905 Expansion of (1/(1 - x))*Product_{k>=1} (1 + x^(k*(k+1)/2)).

Original entry on oeis.org

1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 9, 10, 10, 11, 12, 13, 15, 16, 17, 19, 20, 22, 24, 24, 26, 29, 30, 31, 34, 36, 37, 41, 44, 44, 47, 50, 52, 56, 59, 62, 65, 67, 70, 73, 75, 79, 85, 89, 91, 96, 100, 102, 108, 113, 116, 123, 129, 132, 137, 142, 147, 153, 158, 162, 169, 176, 182, 190, 196, 201
Offset: 0

Views

Author

Ilya Gutkovskiy, May 02 2018

Keywords

Comments

Partial sums of A024940.

Crossrefs

Programs

  • Mathematica
    nmax = 69; CoefficientList[Series[1/(1 - x) Product[1 + x^(k (k + 1)/2), {k, 1, nmax}], {x, 0, nmax}], x]

Formula

a(n) ~ exp(3 * Pi^(1/3) * ((sqrt(2) - 1) * Zeta(3/2))^(2/3) * n^(1/3) / 2^(4/3)) / (2^(1/3) * (sqrt(2) - 1)^(1/3) * sqrt(3) * Pi^(2/3) * Zeta(3/2)^(1/3) * n^(1/6)). - Vaclav Kotesovec, May 04 2018
Previous Showing 41-42 of 42 results.