How Many Numbers Between 250 and 380 Are Multiples of Both 2 and 7?

Click For Summary

Homework Help Overview

The problem involves determining how many integers between 250 and 380 are multiples of both 2 and 7, focusing on the mathematical reasoning behind counting multiples within a specified range.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss various methods for calculating the count of multiples, including using the least common multiple (LCM) and sanity checks on formulas. Some participants suggest listing multiples directly, while others inquire about the generalizability of the formulas used.

Discussion Status

The discussion is active, with participants sharing different approaches and questioning the validity of their methods. Some have provided formulas that yield results, while others express a desire for more efficient techniques beyond brute force counting.

Contextual Notes

Participants are considering the implications of using the LCM for counting multiples and the potential for errors in formula application. There is also mention of the need for clarity when one of the numbers involved is not prime.

Helicobacter
Messages
158
Reaction score
0
In a set of integers from 250 to 380, inclusive, how many are multiples of both 2 and 7?

Please tell me if I'm correct:

floor((380-250+1)/(7*2)) = 9

And in general is it always the floor of [cardinality]/[LCM]?
 
Physics news on Phys.org


Helicobacter said:
In a set of integers from 250 to 380, inclusive, how many are multiples of both 2 and 7?

Please tell me if I'm correct:

floor((380-250+1)/(7*2)) = 9
I get 10.
On problems of this nature, the best course is to do a sanity check on your formula to see if it gives the right results.
Helicobacter said:
And in general is it always the floor of [cardinality]/[LCM]?
 


Mark44 said:
I get 10.
On problems of this nature, the best course is to do a sanity check on your formula to see if it gives the right results.

What formula do you use to get 10?
 


I didn't use a formula. The numbers in this set have to be multiples of 14, so I listed all multiples of 14 between 250 and 380.
 


Is there a more efficient way than brute force?

Also, what would you do if one of the numbers wasn't prime; search for multiples of the LCM in a given set?
 


Here's a formula that gives the correct result:
[tex]\frac{378 - 252}{14} + 1[/tex]

252 is the smallest multiple of 14 that is greater than 250. 378 is the largest multiple of 14 that is less than 280.

This would also work:
[tex]floor(\frac{380 - 250}{14}) + 1[/tex]
 


Thanks

Can you tell me whether your formulas are generalizable and whether the divisor is always the LCM of the two given numbers?
 


Helicobacter said:
Is there a more efficient way than brute force?
Probably. But brute force is superior to using a poorly-understood or incorrect formula that gives incorrect results.

This was a simple problem that took me all of a minute or two to list the numbers in the set, and count them. After I knew how many numbers there were I was able to come up with a formula that gave the same result.
Helicobacter said:
Also, what would you do if one of the numbers wasn't prime; search for multiples of the LCM in a given set?
That seems reasonable.
 

Similar threads

Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 57 ·
2
Replies
57
Views
6K