OFFSET
1,1
MATHEMATICA
okQ[n_]:=Plus@@(Times@@#&/@Partition[Most[Riffle[IntegerDigits[10n], {1, -1}]], 2])==12; Select[Range[7000], okQ] (* Harvey P. Dale, Jan 17 2011 *)
okQ[n_] := Module[{d = IntegerDigits[n]}, Plus @@ Take[d, {1, Length[d], 2}] - Plus @@ Take[d, {2, Length[d], 2}] == 12]; Select[Range[7000], okQ]
CROSSREFS
KEYWORD
base,nonn,easy
AUTHOR
Larry Reeves (larryr(AT)acm.org), May 15 2001
STATUS
approved