OFFSET
1,1
COMMENTS
Numbers with an odd length cannot be in this sequence.
LINKS
Jake L Lande, Table of n, a(n) for n = 1..1000
EXAMPLE
1001 is odd and has two even digits (0,0) and two odd digits (1,1).
MAPLE
filter:= proc(n) local L;
L:= convert(n, base, 10);
nops(select(type, L, even))=nops(L)/2
end proc:
select(filter, [seq(seq(i, i=10^(d-1)+1 .. 10^d, 2), d=2..4, 2)]); # Robert Israel, Aug 07 2024
MATHEMATICA
eeo[n_] := (id = IntegerDigits[n]; Count[EvenQ@id, True] == Count[OddQ@id, True]); Select[Select[Range[1225], eeo], Mod[#, 2] == 1 &]
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Jake L Lande, Aug 07 2024
STATUS
approved