login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A064369 Smallest integer in Recaman's sequence (A005132) to appear n times. 0
42, 261, 490, 494, 5447, 10023, 18519, 33543, 34292, 62263, 62267, 113405, 113406 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

LINKS

Index entries for sequences related to Recaman's sequence

MATHEMATICA

a = {1}; Do[ If[ a[ [ -1 ] ] - n > 0 && Position[ a, a[ [ -1 ] ] - n ] == {}, a = Append[ a, a[ [ -1 ] ] - n ], a = Append[ a, a[ [ -1 ] ] + n ] ], {n, 2, 10^5} ]; b = Sort[ a ]; Do[ k = 1; While[ b[ [ k ] ] != b[ [ k + n ] ], k++ ]; Print[ b[ [ k ] ] ], {n, 1, 13} ]

CROSSREFS

Cf. A005132.

Sequence in context: A122242 A046655 A156357 * A188058 A036463 A190534

Adjacent sequences:  A064366 A064367 A064368 * A064370 A064371 A064372

KEYWORD

easy,nice,nonn

AUTHOR

Robert G. Wilson v (rgwv(AT)rgwv.com), Sep 26 2001

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 19:15 EST 2012. Contains 205852 sequences.