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!)
A341869 For any k, the cumulative sum of the terms a(1) + a(2) + a(3) + ... + a(k) and the cumulative sum of their digits so far are odd. This is the lexicographically earliest sequence of distinct terms > 0 with this property. 0
1, 2, 4, 6, 8, 20, 22, 24, 26, 28, 40, 42, 44, 46, 48, 60, 62, 64, 66, 68, 80, 82, 84, 86, 88, 110, 112, 114, 116, 118, 130, 132, 134, 136, 138, 150, 152, 154, 156, 158, 170, 172, 174, 176, 178, 190, 192, 194, 196, 198, 200, 202, 204, 206, 208, 220, 222, 224, 226, 228, 240, 242, 244, 246, 248 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
This is A179082 (even numbers having an even sum of digits in their decimal representation) where the first term [0] is replaced by [1].
LINKS
EXAMPLE
Sequence = 1,2,4, 6, 8,20,22,24, 26, 28, 40, 42, 44 ...
Cumulative sum of terms = 1 3 7 13 21 41 63 87 113 141 181 223 267 ...
Cumulative sum of digits = 1 3 7 13 21 23 27 33 41 51 55 61 69 ...
MATHEMATICA
a[1]=1; a[n_]:=a[n]=Block[{k=1}, While[MemberQ[q=Array[a, n-1], k]||EvenQ@Total[s=Join[q, {k}]]||EvenQ@Total[Flatten[IntegerDigits/@s]], k++]; k]; Array[a, 65] (* Giorgos Kalogeropoulos, May 11 2022 *)
CROSSREFS
Cf. A179082.
Sequence in context: A273892 A352546 A179082 * A194376 A062897 A014263
KEYWORD
base,nonn
AUTHOR
Eric Angelini, Feb 22 2021
STATUS
approved

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 10 06:02 EDT 2024. Contains 372356 sequences. (Running on oeis4.)