OFFSET
1,1
COMMENTS
Since other digits may be present, the last term is 998876543210; otherwise the last term would be 9988.
No multiples above 2 of identical digits are allowed, e.g., 1122333 is not a member of the sequence. - Harvey P. Dale, Nov 07 2021
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..4000
MATHEMATICA
Select[Range[10^3, 10^4 - 1], Union@ Map[Length, #] == {2} &@ Split@ Sort@ IntegerDigits@ # &] (* Michael De Vlieger, Aug 24 2017 *)
(* program above only works for numbers of 4 digits, or *)
ok[n_] := Block[{d = DigitCount[n]}, Count[d, 2] == 2 && {} == Select[d, # > 2 &]]; Select[Range[11000], ok] (* Giovanni Resta, Aug 25 2017 *)
tpidQ[n_]:=Module[{dc=DigitCount[n]}, Max[dc]==2&&Count[dc, 2]==2]; Select[ Range[2500], tpidQ] (* Harvey P. Dale, Nov 07 2021 *)
CROSSREFS
KEYWORD
nonn,base,fini
AUTHOR
Enrique Navarrete, Aug 21 2017
STATUS
approved