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!)
A274689 A variation of A005228. 1

%I #13 Jul 07 2016 02:23:54

%S 1,-1,2,6,11,8,15,10,19,13,25,21,14,30,22,39,29,20,38,27,50,37,61,49,

%T 35,63,48,32,58,41,72,54,34,67,46,82,60,100,81,57,99,76,51,94,68,112,

%U 85,56,101,73,120,90,59,111,79,132,98,65,127,92,55,119,83,149

%N A variation of A005228.

%C This is the lexicographically earliest sequence such that the absolute value of its first differences (A274690) is minimal, and together with its first differences, contains every integer except zero at most once.

%C Each term is chosen so that |a(n+1) - a(n)| is minimal such that neither a(n+1) nor (a(n+1) - a(n)) has occurred previously in either this sequence or this sequence's first differences. If for a minimal term |k| k and -k are both available, choose the term that will minimize |a(n+1)|.

%C It appears that this sequence together with its first differences list every integer except zero.

%C Is -1 the only negative term?

%e a(1) = 1; the next number with the lowest possible absolute value that has not occurred yet is -1, but since 1 + (-1) = 0 (which is not available because if a(n) = 0, then a(n+1) = a(n+1) - a(n)), -1 is not available. The next available terms are 2 and (-2). (-2) is chosen because |1 + 2| > |1 + (-2)|, so a(2) = 1 + (-2) = -1.

%Y Cf. A005228, A274690.

%K sign

%O 1,3

%A _Max Barrentine_, Jul 02 2016

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 April 25 05:18 EDT 2024. Contains 371964 sequences. (Running on oeis4.)