PC Never-Before-Seen Logic Soon to Come!

Yiphix

Steampunker
Hey guys, I guess the first thing I want to say was that my last post https://forums.terraria.org/index.p...dy-i-hardwire-7-segment-displays-alone.57599/ was supposed to be a joke, I think I'll be taking it down... I was hoping to illustrate the hostility we have to people that don't exactly know what their doing. Anyway, moving on the Official Tactician Crew (OTC) fired me, so I can't put their banner on any of my posts. But that's not what you guys care about.

Untitled.png


This is a table of all the numbers that 5040 and 360 are divisible by, from 1 to 100. As well as the percent.

360 was given just as an example, being that is commonly held as a very divisible number, anyone who can come up with a number smaller then 5000ish that has more divisible numbers? The point is that I'm working on some logic that makes use of this. Let the speculation commence!
 
Something with fractions maybe?
The wikipedia article on highly composite numbers doesn't really help on thinking of any uses for them.
A sorting system?
 
Let the speculation commence!
LOL, that's funny. `:D
I sure hope it's something more interesting than a clock or calculator. Too many people have done those already. :|
Also, I finally have a computer that doesn't completely suck, so I am able to play Terraria again. I have many ideas for things I want to make, but not sure which one I should work on first. So many things I could make...
`:confused:
 
So, the question was: Which number in the range 1-5000 can be divided by the largest percentage of numbers in the range 1-100?

If my code is right, it should be: 2520

It is divisible by 31 numbers:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 18, 20, 21, 24, 28, 30, 35, 36, 40, 42, 45, 56, 60, 63, 70, 72, 84, 90



Code:
x=new Array(6001).fill(0); for(var i = 0; i <= 5000; i++)for(var j = 0; j <= 100; j++)if(i%j==0)x[i]++; Math.max(...x.slice(1))
//31
x.forEach((s,i)=>{if(s==31)console.log(i);})
//2520
 
The only problem I have with this is that 80 doesn't go into it. 50 doesn't either, but it doesn't go into 5040 as well. One thing I want with this number is that I want all the numbers divisible by ten able to go into it.
 
How about 3600?
It is divisible by:
10, 20, 30, 40, 50, 60, 80, 90, 100
(Not divisible by 70)

Other possible numbers (which aren't that amazing):
1200
1800
2400
4200
4800

Code:
for(var j = 10; j <= 100; j+=10)if(3600%j == 0)console.log(j)
[doublepost=1495128718,1495128415][/doublepost]Here is a more mathematical approach:
Numbers:
10,20,30,40,50,60,70,80,90,100

Least common multiple: 2*2*2*2*3*3*5*5*7 = 25200

That number is the smallest number which is divisible by any of the above numbers.
 
Back
Top Bottom