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

A002859 a(1) = 1, a(2) = 3; for n >= 3, a(n) is smallest number that is uniquely of the form a(j) + a(k) with 1 <= j < k < n.

Original entry on oeis.org

1, 3, 4, 5, 6, 8, 10, 12, 17, 21, 23, 28, 32, 34, 39, 43, 48, 52, 54, 59, 63, 68, 72, 74, 79, 83, 98, 99, 101, 110, 114, 121, 125, 132, 136, 139, 143, 145, 152, 161, 165, 172, 176, 187, 192, 196, 201, 205, 212, 216, 223, 227, 232, 234, 236, 243, 247, 252, 256, 258
Offset: 1

Views

Author

Keywords

Comments

An Ulam-type sequence - see A002858 for many further references, comments, etc.

Examples

			7 is missing since 7 = 1 + 6 = 3 + 4; but 8 is present since 8 = 3 + 5 has a unique representation.
		

References

  • S. R. Finch, Mathematical Constants, Cambridge, 2003, pp. 145-151.
  • R. K. Guy, Unsolved Problems in Number Theory, Section C4.
  • R. K. Guy, "s-Additive sequences," preprint, 1994.
  • C. Pickover, Mazes for the Mind, St. Martin's Press, NY, 1992, p. 358.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
  • S. M. Ulam, Problems in Modern Mathematics, Wiley, NY, 1960, p. ix.

Crossrefs

Cf. A002858 (version beginning 1,2), A199118, A199119.

Programs

  • Haskell
    a002859 n = a002859_list !! (n-1)
    a002859_list = 1 : 3 : ulam 2 3 a002859_list
    -- Function ulam as defined in A002858.
    -- Reinhard Zumkeller, Nov 03 2011
  • Mathematica
    s = {1, 3}; Do[ AppendTo[s, n = Last[s]; While[n++; Length[ DeleteCases[ Intersection[s, n-s], n/2, 1, 1]] != 2]; n], {60}]; s (* Jean-François Alcover, Oct 20 2011 *)

A199017 Number of partitions of n into distinct terms of (1,2)-Ulam sequence, cf. A002858.

Original entry on oeis.org

1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 7, 7, 8, 9, 10, 11, 12, 13, 14, 14, 16, 16, 17, 19, 20, 22, 23, 25, 26, 27, 29, 30, 31, 34, 35, 38, 40, 41, 45, 45, 48, 51, 52, 57, 60, 62, 66, 68, 71, 75, 78, 83, 86, 93, 97, 100, 107, 109, 115, 120, 124, 132, 138
Offset: 0

Views

Author

Reinhard Zumkeller, Nov 03 2011

Keywords

Examples

			The first terms of A002858 are 1, 2, 3, 4, 6, 8, 11, 13, 16, 18, ...
a(10) = #{8+2, 6+4, 6+3+1, 4+3+2+1} = 4;
a(11) = #{11, 8+3, 8+2+1, 6+4+1, 6+3+2} = 5;
a(12) = #{11+1, 8+4, 8+3+1, 6+4+2, 6+3+2+1} = 5.
		

Crossrefs

Programs

  • Haskell
    a199017 = p a002858_list where
       p _  0 = 1
       p (u:us) m | m < u = 0
                  | otherwise = p us (m - u) + p us m

A199118 Number of partitions of n into terms of (1,3)-Ulam sequence, cf. A002859.

Original entry on oeis.org

1, 1, 1, 2, 3, 4, 6, 7, 10, 13, 17, 21, 28, 34, 42, 52, 65, 78, 96, 113, 138, 165, 196, 231, 276, 322, 379, 442, 518, 600, 698, 803, 931, 1071, 1231, 1407, 1615, 1839, 2099, 2384, 2712, 3069, 3478, 3923, 4434, 4991, 5618, 6303, 7083, 7928, 8878, 9916, 11081
Offset: 0

Views

Author

Reinhard Zumkeller, Nov 03 2011

Keywords

Examples

			The first terms of A002859 are 1, 3, 4, 5, 6, 8, 10, 12, 17, 21, ...
a(7) = #{6+1, 5+1+1, 4+3, 4+1+1+1, 3+3+1, 3+1+1+1+1, 7x1} = 7;
a(8) = #{8, 6+1+1, 5+3, 5+1+1+1, 4+4, 4+3+1, 4+1+1+1+1, 3+3+1+1, 3+1+1+1+1+1, 8x1} = 10.
		

Crossrefs

Programs

  • Haskell
    a199118 = p a002859_list where
       p _ 0 = 1
       p us'@(u:us) m | m < u     = 0
                      | otherwise = p us' (m - u) + p us m

A199121 Number of partitions of n into distinct terms of (1,4)-Ulam sequence, cf. A003666.

Original entry on oeis.org

1, 1, 0, 0, 1, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 5, 6, 6, 7, 8, 7, 8, 10, 11, 11, 12, 14, 14, 15, 17, 18, 20, 21, 22, 24, 25, 27, 30, 31, 32, 35, 37, 39, 41, 44, 45, 48, 52, 53, 56, 60, 62, 66, 69, 72, 76, 81, 86, 89, 92, 96, 103, 109, 113, 117, 123, 127, 134
Offset: 0

Views

Author

Reinhard Zumkeller, Nov 03 2011

Keywords

Examples

			The first terms of A003666 are 1, 4, 5, 6, 7, 8, 10, 16, 18, 19, ...
a(12) = #{8+4, 7+5, 7+4+1, 6+5+1} = 4;
a(13) = #{8+5, 8+4+1, 7+6, 7+5+1} = 4;
a(14) = #{10+4, 8+6, 8+5+1, 7+6+1} = 4;
a(15) = #{10+5, 10+4+1, 8+7, 8+6+1, 6+5+4} = 5;
a(16) = #{16, 10+6, 10+5+1, 8+7+1, 7+5+4, 6+5+4+1} = 6.
		

Crossrefs

Programs

  • Haskell
    a199121 = p a003666_list where
       p _  0 = 1
       p (u:us) m | m < u =
                  | otherwise = p us (m - u) + p us m

A199123 Number of partitions of n into distinct terms of (2,3)-Ulam sequence, cf. A001857.

Original entry on oeis.org

1, 0, 1, 1, 0, 2, 0, 2, 2, 2, 3, 2, 3, 3, 4, 4, 5, 5, 6, 6, 6, 8, 8, 9, 11, 10, 12, 14, 12, 17, 16, 17, 22, 19, 24, 25, 25, 30, 30, 33, 37, 37, 42, 45, 46, 52, 54, 57, 64, 66, 69, 79, 76, 87, 93, 91, 109, 105, 115, 126, 123, 140, 144, 151, 166, 169, 180, 193
Offset: 0

Views

Author

Reinhard Zumkeller, Nov 03 2011

Keywords

Examples

			The first terms of A001857 are 2, 3, 5, 7, 8, 9, 13, 14, 18, 19, 24, ...
a(20) = #{18+2, 13+7, 13+5+2, 9+8+3, 8+7+5, 8+7+3+2} = 6;
a(21) = #{19+2, 18+3, 14+7, 14+5+2, 13+8, 13+5+3, 9+7+5, 9+7+3+2} = 8.
		

Crossrefs

Programs

  • Haskell
    a199123 = p a001857_list where
       p _  0 = 1
       p (u:us) m | m < u = 0
                  | otherwise = p us (m - u) + p us m
Showing 1-5 of 5 results.