login
First step in Recamán's sequence A005132 at which there are n consecutive subtraction steps in a row.
1

%I #20 Jan 24 2020 06:51:17

%S 4,22,109,1360,24404,17695283,6824557148

%N First step in Recamán's sequence A005132 at which there are n consecutive subtraction steps in a row.

%H Eric Weisstein. <a href="http://mathworld.wolfram.com/RecamansSequence.html">Recamán's Sequence</a>.

%e E.g., 109 is the third term of this sequence because it the first step in Recamán's sequence at which there are three consecutive subtraction steps in a row:

%e 109. 370 - 109 = 261

%e 110. 261 - 110 = 151

%e 111. 151 - 111 = 40

%Y Cf. A005132, A064288.

%K nonn,more

%O 1,1

%A _Sergio Pimentel_, Jul 25 2005

%E a(6)-a(7) from _Jud McCranie_, Jan 24 2020