The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A210023 a(0)=1. Let S = string of digits of a(0),a(1),a(2),... To get a(n+1) (n>=0), subtract next element of S from a(n) if that would give a positive number different from a(0),...,a(n), otherwise add it to a(n). 3

%I

%S 1,2,4,8,16,15,9,10,5,14,13,13,18,17,21,20,23,22,19,20,12,11,18,20,21,

%T 23,23,25,28,26,24,25,34,32,32,31,29,30,31,32,40,38,38,36,35,33,36,38,

%U 41,39,44,42,50,48,54,52,56,58,53,56,60,57,55,58,60,63,62,64,73,70,70,67,66,69,71,75,75,72,80,77,85,82,76,79,74,77,80,83,89,86,78,82,81,84,93,97,101,105,103,98,98

%N a(0)=1. Let S = string of digits of a(0),a(1),a(2),... To get a(n+1) (n>=0), subtract next element of S from a(n) if that would give a positive number different from a(0),...,a(n), otherwise add it to a(n).

%C A base-dependent variant of Recamán's sequence A005132.

%D Eric Angelini, Posting to Sequence Fans Mailing List, Mar 06 2012

%H <a href="/index/Rea#Recaman">Index entries for sequences related to Recamán's sequence</a>

%Y Cf. A005132, A210022 (for S), A210025, A210026.

%K nonn,base

%O 1,2

%A _N. J. A. Sloane_, Mar 16 2012

%E Corrected and extended by _Max Alekseyev_, Nov 11 2012

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

Last modified January 17 15:50 EST 2021. Contains 340245 sequences. (Running on oeis4.)