The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A187922 Positions k of addition steps in Recamán's sequence where A005132(k-1)-k = A005132(m) for some 0 < m < k. 8
6, 7, 9, 18, 19, 21, 33, 34, 36, 66, 67, 69, 71, 73, 75, 101, 102, 104, 106, 108, 113, 114, 115, 117, 121, 123, 125, 127, 133, 134, 172, 173, 175, 177, 179, 181, 183, 186, 188, 189, 190, 194, 224, 225, 227, 229, 231, 233, 236, 238, 240, 242, 244, 246, 287, 288, 290, 292, 294, 296, 298, 300, 302, 304, 339, 340, 342, 344, 346, 348, 350 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Subsequence of A057165; A005132(a(n)-1) - a(n) = A005132(A187943(n));
A005132(a(n)) = A005132(a(n)-1) + a(n);
See A187921 for the other positions of addition steps in A005132.
LINKS
EXAMPLE
a(5) = 19: A005132(19-1) = 43 and 43-19>0, but the term 24=43-19 is already in A005132, therefore A005132(19)=43+19=62; A187943(5)=15 and A005132(15)=24.
PROG
(Haskell)
import Data.Set (Set, singleton, member, insert)
a187922 n = a187922_list !! (n-1)
a187922_list = r (singleton 0) 1 0 where
r :: Set Integer -> Integer -> Integer -> [Integer]
r s n x | x <= n = r (insert (x+n) s) (n+1) (x+n)
| (x-n) `member` s = n : r (insert (x+n) s) (n+1) (x+n)
| otherwise = r (insert (x-n) s) (n+1) (x-n)
(C++) See Links section.
CROSSREFS
Sequence in context: A239869 A289547 A329912 * A032456 A228442 A328644
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Mar 17 2011
EXTENSIONS
Added condition "0 < m" to definition. See A333552. - N. J. A. Sloane, May 04 2020
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 10 07:16 EDT 2024. Contains 373253 sequences. (Running on oeis4.)