login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A199120 Number of partitions of n into terms of (1,4)-Ulam sequence, cf. A003666. 6
1, 1, 1, 1, 2, 3, 4, 5, 7, 8, 11, 13, 17, 20, 25, 30, 38, 44, 54, 63, 77, 90, 107, 124, 148, 171, 202, 231, 271, 310, 360, 412, 477, 542, 622, 705, 809, 915, 1042, 1175, 1335, 1501, 1699, 1905, 2148, 2403, 2702, 3018, 3383, 3768, 4212, 4682, 5223, 5794, 6445 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,5

LINKS

Table of n, a(n) for n=0..54.

Eric Weisstein's World of Mathematics, Ulam Sequence

Wikipedia, Ulam number

Index entries for Ulam numbers

EXAMPLE

The first terms of A003666 are 1, 4, 5, 6, 7, 8, 10, 16, 18, 19, ...

a(7) = #{7, 6+1, 5+1+1, 4+1+1+1, 7x1} = 5;

a(8) = #{8, 7+1, 6+1+1, 5+1+1+1, 4+4, 4+1+1+1+1, 8x1} = 7;

a(9) = #{8+1, 7+1+1, 6+1+1+1, 5+4, 5+1+1+1+1, 4+4+1, 4+5x1, 9x1} = 8.

PROG

(Haskell)

a199120 = p a003666_list where

   p _ 0 = 1

   p us'@(u:us) m | m < u     = 0

                  | otherwise = p us' (m - u) + p us m

CROSSREFS

Cf. A000607; A199016, A199118, A199121, A199122.

Sequence in context: A280241 A031121 A080655 * A118083 A241093 A116470

Adjacent sequences:  A199117 A199118 A199119 * A199121 A199122 A199123

KEYWORD

nonn

AUTHOR

Reinhard Zumkeller, Nov 03 2011

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 12 04:30 EDT 2020. Contains 335658 sequences. (Running on oeis4.)