I am having difficulty figuring this out....

1) how many four digit numbers are composed of three distinct digits (with no leading 0's), such that one digit is the average of other three...?

2) How many such four digit numbers with repeated digit are possible?

thanks for the help!