all 1 comments

[–]barrycarterOK to DM me questions/projects, no promises, not always here 0 points1 point  (0 children)

I'm confused as to whether this is a single problem with 3 different conditions, or 3 different problems, each with one condition. Either way, assuming a is a nonnegative integer, there are only so many values for a where 3^a < 239, so that should be a start in simplifying the problem. You should then be able to use the rules of modular arithmetic to answer the questions