cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

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.

Original entry on oeis.org

1, 10, 16, 7, 23, 32, 45, 54, 67, 76, 89, 98, 100, 203, 225, 230, 247, 252, 269, 274, 296, 302, 320, 405, 427, 449, 450, 472, 494, 504, 522, 540, 607, 629, 670, 692, 706, 724, 742, 760, 809, 890, 908, 926, 944, 962, 980, 1000, 1112, 1121, 1134, 1143, 1156, 1165, 1178
Offset: 1

Views

Author

Eric Angelini and Carole Dubois, Feb 02 2021

Keywords

Comments

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

Examples

			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:
S = 1, 10, 16, 7, 23, 32, 45, 54, 67, 76, 89, 98,...
E = 0   0   6  6   8  10  14  18  24  30  38  46
O = 1   2   3 10  13  16  21  26  33  40  49  58
D = 1   2   3  4   5   6   7   8   9  10  11  12 <-- this is = n.
		

Crossrefs

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