Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #17 Nov 20 2020 21:56:38
%S 0,1,2,3,4,5,6,7,8,9,10,21,12,19,14,17,16,15,18,13,20,11,22,29,24,27,
%T 26,25,28,23,30,41,32,39,34,37,36,35,38,33,40,31,42,49,44,47,46,45,48,
%U 43,50,61,52,59,54,57,56,55,58,53,60,51,62,69,64,67,66,65,68,63,70,81,72,79,74,77,76,75,78,73
%N No even digit is present in a(n) + a(n+1).
%C This is the lexicographically earliest sequence of distinct nonnegative terms with this property and also a permutation of the nonnegative integers.
%H Carole Dubois, <a href="/A338840/b338840.txt">Table of n, a(n) for n = 1..5001</a>
%H <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the nonnegative integers</a>
%e a(1) + a(2) = 0 + 1 = 1 (no even digit is present);
%e a(2) + a(3) = 1 + 2 = 3 (no even digit is present);
%e a(3) + a(4) = 2 + 3 = 5 (no even digit is present);
%e ...
%e a(6) + a(7) = 5 + 6 = 11 (no even digit is present); etc.
%t Block[{a = {0}}, Do[Block[{k = 1}, While[Nand[FreeQ[a, k], NoneTrue[IntegerDigits@ Total[a[[-1]] + k], EvenQ]], k++]; AppendTo[a, k]], {i, 2, 80}]; a] (* _Michael De Vlieger_, Nov 12 2020 *)
%Y Cf. A014261 (no even digits).
%Y Cf. A338839, A338841, A338842, A338843, A338844, A338845, A338846 (variants on the same idea).
%K base,nonn
%O 1,3
%A _Eric Angelini_ and _Carole Dubois_, Nov 11 2020