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!)
A341012 The cumulative sum of the even digits so far in the sequence and the cumulative sum of the odd digits so far differ by n for all a(n)s. 2

%I #17 Feb 07 2021 07:03:22

%S 1,10,16,7,23,32,45,54,67,76,89,98,100,203,225,230,247,252,269,274,

%T 296,302,320,405,427,449,450,472,494,504,522,540,607,629,670,692,706,

%U 724,742,760,809,890,908,926,944,962,980,1000,1112,1121,1134,1143,1156,1165,1178

%N The cumulative sum of the even digits so far in the sequence and the cumulative sum of the odd digits so far differ by n for all a(n)s.

%C This is the lexicographically earliest sequence of distinct integers > 0 having this property.

%H Carole Dubois, <a href="/A341012/b341012.txt">Table of n, a(n) for n = 1..5000</a>

%e Say that the current sequence is S, the cumulative sum at any moment of the even digits of S is E, the cumulative sum at any moment of the odd digits of S is O and the absolute difference |E-O| is D. We would then have:

%e S = 1, 10, 16, 7, 23, 32, 45, 54, 67, 76, 89, 98,...

%e E = 0 0 6 6 8 10 14 18 24 30 38 46

%e O = 1 2 3 10 13 16 21 26 33 40 49 58

%e D = 1 2 3 4 5 6 7 8 9 10 11 12 <-- this is = n.

%Y Cf. A071648, A071649.

%Y Cf. A341002 (numbers whose sum of even digits and sum of odd digits differ by 1).

%K base,nonn

%O 1,2

%A _Eric Angelini_ and _Carole Dubois_, Feb 02 2021

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 May 22 21:38 EDT 2024. Contains 372758 sequences. (Running on oeis4.)