|
|
A107837
|
|
Leftmost digit of a(n) represents the number of even digits in a(n); rightmost digit of a(n) represents the number of odd digits in a(n).
|
|
0
|
|
|
20, 112, 132, 152, 172, 192, 201, 221, 241, 261, 281, 1013, 1033, 1053, 1073, 1093, 1103, 1123, 1143, 1163, 1183, 1213, 1233, 1253, 1273, 1293, 1303, 1323, 1343, 1363, 1383, 1413, 1433, 1453, 1473, 1493, 1503, 1523, 1543, 1563, 1583, 1613, 1633, 1653
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
EXAMPLE
|
20 has two even digits ("2" and "0") and zero odd digit; 112 has one even digit ("2") and two odd digits ("1" and "1"), etc.
|
|
MATHEMATICA
|
okQ[n_]:=Module[{idn=IntegerDigits[n]}, First[idn]== Count[idn, _?EvenQ]&&Last[idn]==Count[idn, _?OddQ]]; Select[Range[2000], okQ] (* Harvey P. Dale, Mar 13 2011 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,easy,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|