[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 149 KB, 1024x726, 1359071563902.jpg [View same] [iqdb] [saucenao] [google]
5810968 No.5810968 [Reply] [Original]

I can't brain today, too much gluten.

How do I calculate the amount of squares that can be attached to a line without overlapping?
The length of the line divided by the length of the square of course, right?

But how do I calculate it where the squares skip its length before repeated?
Like, a 3cm long line will allow three 1cm cubes to run along it, how many will run along it if they skip one every 1cm, obviously 2, but how do I mathematically calculate it so I can just punch it into a calculator?

At first I thought it was (l/s)-(l/(l/s)) but that's wrong, then I thought if you squared s, but that makes no sense. Please help.

>> No.5810986

>length of the line
what?

>> No.5811000

ceil(l/(scuube + sskip))

>> No.5811001
File: 1.60 MB, 3264x1840, IMAG0579.jpg [View same] [iqdb] [saucenao] [google]
5811001

>>5810986
Does it make sense now?
I want to calculate how many holes the will be.

>> No.5811010

Start with 1 square and then add two for the following.

Square, empty space+ square, empty space+ square etc.

((L-S)/2S)+S

>> No.5811024

>>5811010
>+S

Crap. It's supposed to be +1.

((L-S)/2S)+1

You just need some function that discards the remainder. Or not. It's not hard to just forget about stuff after the period.

>> No.5811038

>>5811001
floor(l/scuube + sskip)

>> No.5811045

>>5811024
It works, thanks.
But can you just explain to me why it works?

>> No.5811085

>>5811045
It works because the cubes come in pairs except at one end. You don't end the sequence with an empty space (you could, but it didn't seem like that was what you wanted). So take out the first square (L-S), divide by square width plus space (2*S) and then add to the product the square that you subtracted before dividing (+1).

And so you find the total number of cubes with intermediate cube-length spaces that fits along the line.

>> No.5811096

>>5811085
>when I say cubes I really mean squares
>not that it makes a difference

>> No.5811131

> too much gluten

fuck off with your gluten-freetard advertising you cunt

there's no such thing as gluten sensitivity, you are being scammed

>> No.5811168

>>5811131
I feel like shit when I have more than a slice of bread, I can't even think.
I didn't believe in this shit at first either.

Also, I pay less eating without gluten. lol

>> No.5811275

>>5811168
but flute is no

>> No.5811291

>>5811168
enjoy your placebo induced illness

>> No.5811394

>>5811291
I thought it was just a placebo too, and didn't expect any difference.
But there is, and I didn't even know "gluten sensitivity" is a thing.