Enable contrast version

Tutor profile: Ryan G.

Inactive
Ryan G.
Tutor / Creator / Educator
Tutor Satisfaction Guarantee

Questions

Subject: Discrete Math

TutorMe
Question:

Suppose n is a positive integer such that $$n \text{ mod } 4 = 1$$. Prove $$(n + 6) \text{ mod } 4 = 1$$

Inactive
Ryan G.
Answer:

Since we know that $$n \text{ mod } 4 = 1$$ We can deduce that $$(n + 1) \text{ mod } 4 = 2$$ since increasing n by 1 increases the remainder by 1, as long as the remainder is less than 4. Similarly, we can do that two more times and know that $$(n + 3) \text{ mod } 4 = 0$$ And going 3 steps further: $$(n + 3 + 3) \text{ mod } 4 = 1 + 3 + 3 \text{ mod } 4 = 7 \text{ mod } 4 = 3$$

Subject: Computer Science (General)

TutorMe
Question:

Write a Recursive Algorithm to find the value of an integer n raised to any power m where m $$\geq$$ 0

Inactive
Ryan G.
Answer:

In this function we should have 2 inputs n & m which are the Integer and the Power to raise it to respectively. Our Base Cases will be when m is 0 or 1, in which case the result is 1 or n respectively. As the func pow(n, m) if (m == 0) return 1 if (m == 1) return n return n * pow(n, m - 1)

Subject: Algebra

TutorMe
Question:

Consider a Function f(x) which yields the price of a box of Tacos. The Box costs $5 and includes 8 Tacos, but additional Tacos can be added for $0.50 per Taco, Write the formula for the Price of a box of Tacos of any size greater than 5.

Inactive
Ryan G.
Answer:

Let's first consider what information we need to represent in the formula. f(x) (should) equal the price of a box of tacos, when x is the number of additional tacos we would like to purchase on top of the 8 included with the box. So we can say our INPUT is the Number of Tacos $$ = x$$ OUTPUT is the Price of a Box of x Tacos That default 8 is unnecessary to consider in our formula, which should always be at least $5, since $$f(0) = 5$$ So with that base $5 we then add the total cost of additional tacos, which can be represented by (Number of Tacos) $$ * $$ $$0.5 = x * 0.5 = 0.5 * x = \frac{1}{2} * x = x/2$$ $$f(x) = \frac{x}{2} + 5$$

Contact tutor

Send a message explaining your
needs and Ryan will reply soon.
Contact Ryan

Request lesson

Ready now? Request a lesson.
Start Lesson

FAQs

What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Lesson" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.
BEST IN CLASS SINCE 2015
TutorMe homepage
Made in California by Zovio
© 2013 - 2021 TutorMe, LLC
High Contrast Mode
On
Off