+0  
 
0
101
2
avatar+136 

Alicia has $n$ candies, where $n$ is a positive integer with three digits. If she buys $5$ more, she will have a multiple of $8$. If she loses $8$, she will have a multiple of $5$. What is the smallest possible value of $n$?

RektTheNoob  Sep 2, 2017
Sort: 

2+0 Answers

 #1
avatar
0

123 + 5 = 128 multiple of 8

123 - 8 = 115 multiple of 5

Guest Sep 2, 2017
 #2
avatar
0

8 - 5 = 3 

LCM (5, 8) = 40

 

(n + 5) mod 8 = 0

(n - 8) mod 5 = 0 , solve for n

 

n = 40D + 3,  for D=0, 1, 2, 3......etc. Since n must the smallest positive 3-digit integer, then we have:

n = 40*3 + 3

n = 120 + 3

n = 123

Guest Sep 3, 2017

17 Online Users

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.  See details