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.

A029145 Expansion of 1/((1-x^2)(1-x^3)(1-x^5)(1-x^8)).

Original entry on oeis.org

1, 0, 1, 1, 1, 2, 2, 2, 4, 3, 5, 5, 6, 7, 8, 9, 11, 11, 14, 14, 17, 18, 20, 22, 25, 26, 30, 31, 35, 37, 41, 43, 48, 50, 55, 58, 63, 66, 72, 75, 82, 85, 92, 96, 103, 108, 115, 120, 129, 133, 143, 148, 157, 164, 173, 180
Offset: 0

Views

Author

Keywords

Comments

Number of partitions of n into parts 2, 3, 5, and 8. - Joerg Arndt, Jul 07 2013

Crossrefs

Cf. A028290.

Programs

  • Haskell
    import Data.MemoCombinators (memo2, integral)
    a029145 n = a029145_list !! n
    a029145_list = map (p' 0) [0..] where
       p' = memo2 integral integral p
       p _ 0 = 1
       p 4 _ = 0
       p k m | m < parts !! k = 0
             | otherwise = p' k (m - parts !! k) + p' (k + 1) m
       parts = [2, 3, 5, 8]
    -- Reinhard Zumkeller, Dec 09 2015

Formula

a(n) = floor((2*n^3+54*n^2+435*n+2435+45*(n+1)*(-1)^n)/2880+1/4*(((-1)^n+floor((n+1)/4)-floor(n/4))*(-1)^floor(n/4))). - Tani Akinari, Jul 07 2013