OFFSET
1,1
COMMENTS
An Ulam-type sequence - see A002858 for many further references, comments, etc.
REFERENCES
S. R. Finch, Patterns in 1-additive sequences, Experimental Mathematics 1 (1992), 57-63.
S. R. Finch, Mathematical Constants, Cambridge, 2003, pp. 145-151.
R. K. Guy, Unsolved Problems in Number Theory, Section C4.
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.
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
Steven R. Finch, Ulam s-Additive Sequences [From Steven Finch, Apr 20 2019]
J. Cassaigne and S. R. Finch, A class of 1-additive sequences and additive recurrences
N. J. A. Sloane, Handwritten notes on Self-Generating Sequences, 1970 (note that A1148 has now become A005282)
Eric Weisstein's World of Mathematics, Ulam Sequence
Wikipedia, Ulam number
MATHEMATICA
s = {2, 3}; Do[ AppendTo[s, n = Last[s]; While[n++; Length[ DeleteCases[ Intersection[s, n-s], n/2, 1, 1]] != 2]; n], {100}]; s (* Jean-François Alcover, Sep 08 2011 *)
PROG
(Haskell)
a001857 n = a001857_list !! (n-1)
a001857_list = 2 : 3 : ulam 2 3 a001857_list
-- Function ulam as defined in A002858.
-- Reinhard Zumkeller, Nov 03 2011
CROSSREFS
KEYWORD
nonn,nice,changed
AUTHOR
EXTENSIONS
More terms from Jud McCranie
STATUS
approved