Question

This should be done using RStudio

2 [10 marks] Using vector syntax, and subsetting, solve the following three sub-questions. Note that while you can solve these manually, that is not the intention of the problem, and doing so will result in zero points. Begin by creating two vectors: one of all of the multiples of 5 between 1 and 100 (x) and one of all of the multiples of 3 between 1 and 100 (). (a) How many multiples of 5 are also multiples of 3, between 1 and 100? b) How many multiples of 5 are equal to 3k +1, that is, 1 higher than a multiple of 3? (c) How many multiples of 3 are equal to 5k+2, that is, 2 higher than a multiple of 5?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Multiple 5 Multiple of 3 a) Multiples of both 5 & 3 ae 15, 30, 45, 60, 75, 90 c) 5kt2 So, total 6 3kt1 From all these values

Add a comment
Know the answer?
Add Answer to:
This should be done using RStudio 2 [10 marks] Using vector syntax, and subsetting, solve the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT